[oe-commits] Darren Hart : mkefidisk: Boot with ro kernel parameter instead of rw
git at git.openembedded.org
git at git.openembedded.org
Fri Mar 22 17:05:38 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 960f0cbf85a4124adbc74d8b2ceb09a7d39ecc04
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=960f0cbf85a4124adbc74d8b2ceb09a7d39ecc04
Author: Darren Hart <dvhart at linux.intel.com>
Date: Tue Mar 19 15:15:03 2013 -0700
mkefidisk: Boot with ro kernel parameter instead of rw
There is no need to boot with "rw". Booting with "ro" will allow for
fsck to be run during boot, and a proper /etc/fstab will still ensure
the rootfs is "rw" by the time the user can interact with the system.
Change the "rw" to "ro" in the kernel parameters specified in the
generated grub.cfg file.
Fixes [YOCTO 4036] mkefidisk.sh hardcodes 'rw' as root mount option
Signed-off-by: Darren Hart <dvhart at linux.intel.com>
Cc: Koen Kooi <koen at dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/contrib/mkefidisk.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index c68c224..9275ecf 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -253,7 +253,7 @@ sed -i "s/ LABEL=[^ ]*/ /" $GRUBCFG
# Replace the ramdisk root (if any) with the install device and include other
# kernel parameters
sed -i "s@ root=[^ ]*@ @" $GRUBCFG
-sed -i "s at vmlinuz @vmlinuz root=$TARGET_ROOTFS rw $ROOTWAIT quiet @" $GRUBCFG
+sed -i "s at vmlinuz @vmlinuz root=$TARGET_ROOTFS ro $ROOTWAIT quiet @" $GRUBCFG
# Provide a startup.nsh script for older firmware with non-standard boot
# directories and paths.
More information about the Openembedded-commits
mailing list