[oe-commits] [openembedded-core] 07/10: init-install: fix a typo which will led delete section failed when use sed

git at git.openembedded.org git at git.openembedded.org
Sat Mar 23 10:27:47 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3ec0e0c31ea044f2178210506d5eb2986a0b4a26
Author: Liwei Song <liwei.song at windriver.com>
AuthorDate: Wed Mar 20 23:19:15 2019 -0400

    init-install: fix a typo which will led delete section failed when use sed
    
    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>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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 c23132a..6e4f3aa 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list