]> code.ossystems Code Review - openembedded-core.git/commitdiff
mkefidisk.sh: Remove initrd entry for gummiboot
authorDarren Hart <dvhart@linux.intel.com>
Mon, 21 Jul 2014 16:12:48 +0000 (09:12 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Jul 2014 20:44:20 +0000 (21:44 +0100)
My previous patch adding gummiboot support was missing the line to
remove the initrd line from the boot config. This was an oversight in
copying over the grub setup to gummiboot. Add the necessary logic to
remove it.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/mkefidisk.sh

index 7ec373ef56c250d74d7e873b5463d7a37a3c9347..ba2b56393bf3c5a43141f3b0f7759355c8da2544 100755 (executable)
@@ -355,6 +355,7 @@ if [ -d "$GUMMI_ENTRIES" ]; then
                echo "ERROR: $GUMMI_CFG not found"
        fi
 
+       sed -i "/initrd /d" $GUMMI_CFG
        sed -i "s@ root=[^ ]*@ @" $GUMMI_CFG
        sed -i "s@options *LABEL=boot @options LABEL=Boot root=$TARGET_ROOTFS ro rootwait quiet @" $GUMMI_CFG
 fi