]> code.ossystems Code Review - openembedded-core.git/commitdiff
init-install-efi.sh: remove all root=foo from grub.cfg
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 1 Apr 2016 09:14:45 +0000 (02:14 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Apr 2016 14:03:23 +0000 (15:03 +0100)
There might be more than one root=/dev/foo in the config file which
would cause unepected errros on the installed target, so remove all of
them.

[YOCTO #9354]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install-efi.sh

index 3531158f3b762f2bd61bffa7f205d6bebf4929ab..d58826a240993ef20341b551658ae27f128b956f 100644 (file)
@@ -217,7 +217,7 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
     # Delete any LABEL= strings
     sed -i "s/ LABEL=[^ ]*/ /" $GRUBCFG
     # Delete any root= strings
-    sed -i "s/ root=[^ ]*/ /" $GRUBCFG
+    sed -i "s/ root=[^ ]*/ /g" $GRUBCFG
     # Add the root= and other standard boot options
     sed -i "s@linux /vmlinuz *@linux /vmlinuz root=PARTUUID=$root_part_uuid rw $rootwait quiet @" $GRUBCFG
 fi