X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=rc.d%2Frc.sysinit;h=b01b9d38f863d7cfaecda6ca73faad4a79430f1a;hb=709875e895a085534cc77a44524c0a7ee2b9c7f8;hp=826b4353e72ef385691a6bbb916aee4906069e08;hpb=49ade4f4b5b1978db4561d62063008a339a1526f;p=rc-scripts.git diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 826b435..b01b9d3 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -383,16 +383,14 @@ if ! is_yes "$VSERVER" && [[ "$container" != lxc* ]]; then grep -Fq sysfs /proc/filesystems && mount -n -o gid=17 -t sysfs sysfs /sys fi if grep -Fq securityfs /proc/filesystems; then - mount -n -o gid=17 -t securityfs securityfs /sys/kernel/security + mount -n -t securityfs securityfs /sys/kernel/security + fi + if [ -d /sys/firmware/efi ] && ! is_fsmounted efivarfs /sys/firmware/efi/efivars; then + mount -n -o rw -t efivarfs efivarfs /sys/firmware/efi/efivars fi init_selinux - # TLD Linux LiveCD support - if [ -x /etc/rc.d/rc.live ]; then - /etc/rc.d/rc.live - fi - # Choose Hardware profile if ! is_no "$HWPROFILES" && [ -f /etc/sysconfig/hwprof ]; then . /etc/sysconfig/hwprof @@ -655,6 +653,9 @@ if ! is_yes "$VSERVER" && [[ "$container" != lxc* ]]; then if is_fsmounted securityfs /sys/kernel/security ; then mount -f -t securityfs securityfs /sys/kernel/security 2> /dev/null fi + if [ -d /sys/firmware/efi ] && is_fsmounted efivarfs /sys/firmware/efi/efivars ; then + mount -f -t efivarfs efivarfs /sys/firmware/efi/efivars 2> /dev/null + fi fi if is_fsmounted selinuxfs /selinux; then