[OE-core] [PATCH 7/8] init-install: fix a typo which will led delete section failed when use sed

Liwei Song liwei.song at windriver.com
Thu Mar 21 03:19:15 UTC 2019


use sed to delete the install section may failed due to an typo
in installer routine.

Signed-off-by: Liwei Song <liwei.song at windriver.com>
---
 meta/recipes-core/initrdscripts/files/init-install-efi.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index c23132ae632d..6e4f3aa03b58 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -259,7 +259,7 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
     cp /run/media/$1/EFI/BOOT/grub.cfg $GRUBCFG
     # Update grub config for the installed image
     # Delete the install entry
-    sed -i "/menuentry 'install'/,/^}/d" $GRUBCFG
+    sed -i "/menuentry 'install/,/^}/d" $GRUBCFG
     # initrd is necessary to boot from MD device
     if [ ! "${device#/dev/md}" = "${device}" ]; then
        cp /run/media/$1/initrd /boot
-- 
2.7.4



More information about the Openembedded-core mailing list