]> code.ossystems Code Review - openembedded-core.git/commitdiff
init-install-efi: fix script for gummiboot loader
authorNg, Mei Yeen <mei.yeen.ng@intel.com>
Thu, 26 Nov 2015 03:30:49 +0000 (11:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:31:03 +0000 (21:31 +0000)
After running gummiboot loader install option, the installed target
storage device boot parameter for root=PARTUUID is empty causing boot failure.
This issue is only observed with gummiboot and not with GRUB loader.

This fix assign the rootuuid of the rootfs partition for gummiboot loader.

[YOCTO #8709]
Signed-off-by: Ng, Mei Yeen <mei.yeen.ng@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initrdscripts/files/init-install-efi.sh

index fc4908ef9138af969a95cb75b7bebe978d59af06..3c79a0da4924946a09577f9ccbed3367366a923b 100644 (file)
@@ -223,6 +223,7 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
 fi
 
 if [ -d /run/media/$1/loader ]; then
+    rootuuid=$(blkid -o value -s PARTUUID ${rootfs})
     GUMMIBOOT_CFGS="/boot/loader/entries/*.conf"
     # copy config files for gummiboot
     cp -dr /run/media/$1/loader /boot