diff options
author | Ng, Mei Yeen <mei.yeen.ng@intel.com> | 2015-11-26 11:30:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:32:14 +0000 |
commit | f8087475de4b8bc20a1f509a5af6ae6a7258f231 (patch) | |
tree | 81d1486f6be0b60b234f476a7b101551a7ec26cd /meta/recipes-core | |
parent | 2a5503669a0aaed2efd5aa4d7b7270c8c9f7f203 (diff) | |
download | poky-f8087475de4b8bc20a1f509a5af6ae6a7258f231.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]
(From OE-Core rev: fd5fa06fe45ca1fdf20df4198ae323967244af5b)
Signed-off-by: Ng, Mei Yeen <mei.yeen.ng@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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 fc4908ef91..3c79a0da49 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 | |||
223 | fi | 223 | fi |
224 | 224 | ||
225 | if [ -d /run/media/$1/loader ]; then | 225 | if [ -d /run/media/$1/loader ]; then |
226 | rootuuid=$(blkid -o value -s PARTUUID ${rootfs}) | ||
226 | GUMMIBOOT_CFGS="/boot/loader/entries/*.conf" | 227 | GUMMIBOOT_CFGS="/boot/loader/entries/*.conf" |
227 | # copy config files for gummiboot | 228 | # copy config files for gummiboot |
228 | cp -dr /run/media/$1/loader /boot | 229 | cp -dr /run/media/$1/loader /boot |