diff options
author | Ng, Mei Yeen <mei.yeen.ng@intel.com> | 2015-11-26 11:30:49 +0800 |
---|---|---|
committer | Robert Yang <liezhi.yang@windriver.com> | 2015-12-08 00:18:12 -0800 |
commit | 0b9f31452a65d1a8d8392b4ba9c335bd32860a6a (patch) | |
tree | 75a5354089f5ede679350e3569152091092db716 /meta/recipes-core/initrdscripts/files | |
parent | 1be316beb5c2b1e32f11ab8ec5dee68f64defb2d (diff) | |
download | openembedded-core-0b9f31452a65d1a8d8392b4ba9c335bd32860a6a.tar.gz |
init-install-efi: fix script for gummiboot loader
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>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts/files')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index ac26bceceb..0443a9d11f 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh @@ -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 |