diff options
-rwxr-xr-x | scripts/contrib/mkefidisk.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh index b7db0a9134..40203ee9cc 100755 --- a/scripts/contrib/mkefidisk.sh +++ b/scripts/contrib/mkefidisk.sh | |||
@@ -250,8 +250,10 @@ sed -i "/menuentry 'install'/,/^}/d" $GRUBCFG | |||
250 | sed -i "/initrd /d" $GRUBCFG | 250 | sed -i "/initrd /d" $GRUBCFG |
251 | # Delete any LABEL= strings | 251 | # Delete any LABEL= strings |
252 | sed -i "s/ LABEL=[^ ]*/ /" $GRUBCFG | 252 | sed -i "s/ LABEL=[^ ]*/ /" $GRUBCFG |
253 | # Replace the ramdisk root with the install device and include other options | 253 | # Replace the ramdisk root (if any) with the install device and include other |
254 | sed -i "s@ root=[^ ]*@ root=$TARGET_ROOTFS rw $ROOTWAIT quiet@" $GRUBCFG | 254 | # kernel parameters |
255 | sed -i "s@ root=[^ ]*@ @" $GRUBCFG | ||
256 | sed -i "s@vmlinuz @vmlinuz root=$TARGET_ROOTFS rw $ROOTWAIT quiet @" $GRUBCFG | ||
255 | 257 | ||
256 | # Provide a startup.nsh script for older firmware with non-standard boot | 258 | # Provide a startup.nsh script for older firmware with non-standard boot |
257 | # directories and paths. | 259 | # directories and paths. |