summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2015-04-14 11:49:37 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-15 18:12:45 +0100
commit1e64bf4a7e9695acb928a0e27448a81e58766df4 (patch)
treee6397db34a7d191075dbb6345bbe02600e09ddaf /meta/recipes-core/initrdscripts
parent427c70443de713211b6951f15980f41c0be740b2 (diff)
downloadpoky-1e64bf4a7e9695acb928a0e27448a81e58766df4.tar.gz
init-install-efi.sh: fix gummiboot entry installation
After selecting the "install" gummiboot option of a Live image we are seeing boot failure resulting from the gummiboot entries not being installed correctly. This seems to be a problem in this init-install-efi.sh script where it incorrectly installs the gummiboot entries into the root filesystem, not the boot partition. We fix it by installing the entries in the boot partition. (From OE-Core master rev: c9b06c79ed8a082d1b385e9f61721aeeda9bf1af) (From OE-Core rev: 5d38c46689c9065992838b58e280886f4091f8fd) Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-efi.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index 89d0750b09..329586d74d 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -199,11 +199,11 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
199fi 199fi
200 200
201if [ -d /run/media/$1/loader ]; then 201if [ -d /run/media/$1/loader ]; then
202 GUMMIBOOT_CFGS="/tgt_root/loader/entries/*.conf" 202 GUMMIBOOT_CFGS="/boot/loader/entries/*.conf"
203 # copy config files for gummiboot 203 # copy config files for gummiboot
204 cp -dr /run/media/$1/loader /tgt_root 204 cp -dr /run/media/$1/loader /boot
205 # delete the install entry 205 # delete the install entry
206 rm -f /tgt_root/loader/entries/install.conf 206 rm -f /boot/loader/entries/install.conf
207 # delete the initrd lines 207 # delete the initrd lines
208 sed -i "/initrd /d" $GUMMIBOOT_CFGS 208 sed -i "/initrd /d" $GUMMIBOOT_CFGS
209 # delete any LABEL= strings 209 # delete any LABEL= strings