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-13 22:02:16 +0000 |
commit | 01850c786afd80b595dd7562dd915d22d014195a (patch) | |
tree | 70f69911b64e255c1d10165a9977614ae29bb39b /meta | |
parent | 409b656f74d86281ac8fb285114cdcfa59c137a2 (diff) | |
download | poky-01850c786afd80b595dd7562dd915d22d014195a.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: adc0a31169f59d0183c327347b9ab3bcebb1aef2)
Signed-off-by: Haris Okanovic <haris.okanovic@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 |