ports/main/nnd-s6-services/rc/mount.boot-efi/up

23 lines
363 B
Plaintext
Raw Normal View History

2022-10-18 19:06:48 +00:00
#!/bin/execlineb -P
define DEST /boot/efi
define CLEANDEST boot-efi
2022-10-18 19:06:48 +00:00
s6-envdir -i /etc/s6/env/path
importas -i PATH PATH
s6-envdir -i /etc/s6/env/mount.${CLEANDEST}
2022-10-18 19:06:48 +00:00
importas -i SRC SRC
importas -i FSTYPE FSTYPE
importas -i OPTS OPTS
2022-10-18 19:06:48 +00:00
emptyenv
export PATH $PATH
fdclose 1
fdclose 2
foreground {
exec mkdir -p $DEST
} exec mount -t $FSTYPE -o $OPTS $SRC $DEST