2022-11-18 16:26:51 +00:00
|
|
|
#!/bin/execlineb -P
|
2022-11-26 13:36:37 +00:00
|
|
|
define DEST /dev/hugepages
|
|
|
|
define CLEANDEST dev-hugepages
|
|
|
|
define FSTYPE hugetlbfs
|
|
|
|
|
2022-11-18 16:26:51 +00:00
|
|
|
s6-envdir -i /etc/s6/env/path
|
|
|
|
importas -i PATH PATH
|
2022-11-26 13:36:37 +00:00
|
|
|
|
|
|
|
s6-envdir -i /etc/s6/env/mount.${CLEANDEST}
|
2022-11-18 16:26:51 +00:00
|
|
|
importas -i OPTS OPTS
|
2022-11-26 13:36:37 +00:00
|
|
|
|
2022-11-18 16:26:51 +00:00
|
|
|
emptyenv
|
|
|
|
|
|
|
|
export PATH $PATH
|
|
|
|
|
|
|
|
fdclose 1
|
|
|
|
fdclose 2
|
|
|
|
|
|
|
|
foreground {
|
|
|
|
exec mkdir -p $DEST
|
|
|
|
} exec mount -t $FSTYPE -o $OPTS none $DEST
|