diff options
author | Haris Okanovic <haris.okanovic@ni.com> | 2019-11-07 13:24:54 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-10 14:06:10 +0000 |
commit | b30c1f5e46a173221c5ffb248eb9da508f8c446a (patch) | |
tree | da2a243e607a7c827317611cc83a6b435320b58b | |
parent | a98c7c7aa3770988b4cd564fbdfc26476c46f8f3 (diff) | |
download | poky-b30c1f5e46a173221c5ffb248eb9da508f8c446a.tar.gz |
initscripts/sysfs.sh: Mount /sys/firmware/efi/efivars when possible
Without this change, efibootmgr is unable to recover BootOrder if lost
during a previous write operation, e.g. exceeded storage capacity. This
is problematic using EFI to manage boot flow from Linux (E.g. via RAUC).
https://www.kernel.org/doc/Documentation/filesystems/efivarfs.txt
(From OE-Core rev: 0fb92b500b7d6b84368ca3a85e675400c6473987)
Signed-off-by: Haris Okanovic <haris.okanovic@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh index f5b5b9904b..4871ee94e5 100644 --- a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | |||
@@ -26,6 +26,10 @@ if [ -e /sys/kernel/config ] && grep -q configfs /proc/filesystems; then | |||
26 | mount -t configfs configfs /sys/kernel/config | 26 | mount -t configfs configfs /sys/kernel/config |
27 | fi | 27 | fi |
28 | 28 | ||
29 | if [ -e /sys/firmware/efi/efivars ] && grep -q efivarfs /proc/filesystems; then | ||
30 | mount -t efivarfs efivarfs /sys/firmware/efi/efivars | ||
31 | fi | ||
32 | |||
29 | if ! [ -e /dev/zero ] && [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then | 33 | if ! [ -e /dev/zero ] && [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then |
30 | mount -n -t devtmpfs devtmpfs /dev | 34 | mount -n -t devtmpfs devtmpfs /dev |
31 | fi | 35 | fi |