Merge branch 'hheinold/initramfs_fixes'

This commit is contained in:
Holger Hans Peter Freyther 2014-08-28 23:13:38 +02:00
commit 2e1f051a69
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# we sed the udev automounter so it mounts all partions on the stick/sdcard readonly
change_udev_automounter_ro() {
sed -i -e 's/\-t auto/\-t auto \-o ro/' ${IMAGE_ROOTFS}/etc/udev/scripts/mount.sh
}
ROOTFS_POSTPROCESS_COMMAND += "change_udev_automounter_ro ; "

View File

@ -159,6 +159,7 @@ if [ -f /etc/grub.d/40_custom ] ; then
sed -i "s/__VGA_MODE__/$4/g" $GRUBCFG
sed -i "s/__CONSOLE__/$5/g" $GRUBCFG
sed -i "s/quiet/net.ifnames=0 quiet/g" $GRUBCFG
sed -i "s/rw/ro/g" $GRUBCFG
sed -i "/#/d" $GRUBCFG
sed -i "/exec tail/d" $GRUBCFG
chmod 0444 $GRUBCFG
@ -172,11 +173,11 @@ umount /boot
umount /tgt_root
echo "Resizing partition"
e2fsck -f $rootfs || true
resize2fs $rootfs
sync
echo "Remove your installation media, and press ENTER"
read enter

View File

@ -1,2 +1,4 @@
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
RDEPENDS_${PN} += "e2fsprogs-e2fsck"