diff options
Diffstat (limited to 'os/etc/s6-rc/src/mount-sysfs/up')
| -rw-r--r-- | os/etc/s6-rc/src/mount-sysfs/up | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/os/etc/s6-rc/src/mount-sysfs/up b/os/etc/s6-rc/src/mount-sysfs/up deleted file mode 100644 index d84627f..0000000 --- a/os/etc/s6-rc/src/mount-sysfs/up +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/execlineb -P - -# /sys -foreground { - if -n { test -d /sys } mkdir -m 0755 /sys - if -n { mountpoint -q /sys } - mount -t sysfs sys /sys -o nosuid,noexec,nodev - -} - -# securityfs -foreground { - if -t { test -d /sys/kernel/security } - if -t { grep -qs securityfs /proc/filesystems } - if -n { mountpoint -q /sys/kernel/security } - mount -t securityfs securityfs /sys/kernel/security -o nosuid,noexec,nodev -} - -# debugfs -foreground { - if -t { test -d /sys/kernel/debug } - if -t { grep -qs debugfs /proc/filesystems } - if -n { mountpoint -q /sys/kernel/debug } - mount -t debugfs debugfs /sys/kernel/debug -o nosuid,noexec,nodev -} - -# configfs -foreground { - if -t { test -d /sys/kernel/config } - if -t { grep -qs configfs /proc/filesystems } - if -n { mountpoint -q /sys/kernel/config } - mount -t configfs configfs /sys/kernel/config -o nosuid,noexec,nodev -} - -# fusectl -foreground { - if -t { test -d /sys/fs/fuse/connections } - if -t { grep -qs fusectl /proc/filesystems } - if -n { mountpoint -q /sys/fs/fuse/connections } - mount -t fusectl fusectl /sys/fs/fuse/connections -o nosuid,noexec,nodev -} - -# pstore -foreground { - if -t { test -d /sys/fs/pstore } - if -t { grep -qs 'pstore$' /proc/filesystems } - if -n { mountpoint -q /sys/fs/pstore } - mount -t pstore pstore /sys/fs/pstore -o nosuid,noexec,nodev -} - -# selinux -foreground { - if -t { test -d /sys/fs/selinux } - if -t { grep -qs selinuxfs /proc/filesystems } - if -n { mountpoint -q /sys/fs/selinux } - mount -t selinuxfs selinuxfs /sys/fs/selinux -o nosuid,noexec,nodev -} - -# efivarfs -foreground { - if -t { test -d /sys/firmware/efi } - if -t { grep -qs efivarfs /proc/filesystems } - if { test -d /sys/firmware/efi } - if -n { mountpoint -q /sys/firmware/efi/efivars } - mount -n -t efivarfs efivarfs /sys/firmware/efi/efivars -o ro,nosuid,noexec,nodev -} |