Skip to content

Commit 94b3f86

Browse files
landgrafrpurdie
authored andcommitted
overlayfs-etc: Unmount /sys and /proc before init
/sys filesystem mounted by the preinit script causes shadowing of /sys/firmware/efi/ by double /sys mounting on systemd enabled systems [1]. As the result EFI tooling is broken [1] sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,relatime) Signed-off-by: Pavel Zhukov <pavel@zhukoff.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent 2d82d5e commit 94b3f86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

meta/files/overlayfs-etc-preinit.sh.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@ else
4848
echo "PREINIT: Mounting </data> failed!"
4949
fi
5050

51+
umount /sys
52+
umount /proc
53+
5154
echo "PREINIT: done; starting </sbin/init>"
5255
exec {SBIN_INIT_NAME}

0 commit comments

Comments
 (0)