]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
init-install-efi.sh: remove all root=foo from grub.cfg
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 1 Apr 2016 06:41:08 +0000 (23:41 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Sat, 2 Apr 2016 06:13:56 +0000 (23:13 -0700)
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>
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