rc.mounts (1480B)
1 #!/usr/bin/execlineb 2 # basic skeleton 3 #background { printf "Mounting filesystem...\n" } 4 #foreground { if {mountpoint -q } mount -t -o } 5 6 background { printf "Mounting proc filesystem...\n" } 7 foreground { if { mountpoint -q /proc } mount -t proc proc /proc -o nosuid,noexec,nodev } 8 9 background { printf "Mounting sysfs filesystem...\n" } 10 foreground { if { mountpoint -q /sys } mount -t sysfs sysfs /sys -o nosuid,noexec,nodev } 11 12 foreground { 13 if { eltest -d /sys/firmware/efi } 14 background { printf "Mounting efivarfs filesystem...\n" } 15 foreground { 16 if { mountpoint -q /sys/firmware/efivars } 17 mount -t efivarfs -o ro efivarfs /sys/firmware/efi/efivars 18 } 19 } 20 21 background { printf "Mounting /dev filesystem...\n" } 22 foreground { if { mountpoint -q /dev } mount -t devtmpfs devtmpfs /dev -o mode=0755,nosuid } 23 24 background { printf "Mounting /dev/pts filesystem...\n" } 25 foreground { if {eltest -d /dev } mkdir /dev/pts } 26 foreground { if { mountpoint -q /dev/pts } mount -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec } 27 28 background { printf "Mounting /dev/shm filesystem...\n" } 29 foreground { if { mountpoint -q /dev/shm } mount -t tmpfs tmpfs /dev/pts -o mode=1777,nosuid,nodev } 30 31 background { printf "Mounting /run filesystem...\n" } 32 foreground { if { mountpoint -q /run } mount -t tmpfs tmpfs /run -o mode=0755,nosuid,nodev } 33 34 background { printf "Mounting /run filesystem...\n" } 35 foreground { if {mountpoint -q /tmp } mount -t tmpfs tmpfs /tmp }