Merge branch 'hheinold/initramfs_fixes'
This commit is contained in:
commit
2e1f051a69
|
@ -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 ; "
|
|
@ -159,6 +159,7 @@ if [ -f /etc/grub.d/40_custom ] ; then
|
||||||
sed -i "s/__VGA_MODE__/$4/g" $GRUBCFG
|
sed -i "s/__VGA_MODE__/$4/g" $GRUBCFG
|
||||||
sed -i "s/__CONSOLE__/$5/g" $GRUBCFG
|
sed -i "s/__CONSOLE__/$5/g" $GRUBCFG
|
||||||
sed -i "s/quiet/net.ifnames=0 quiet/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 "/#/d" $GRUBCFG
|
||||||
sed -i "/exec tail/d" $GRUBCFG
|
sed -i "/exec tail/d" $GRUBCFG
|
||||||
chmod 0444 $GRUBCFG
|
chmod 0444 $GRUBCFG
|
||||||
|
@ -172,11 +173,11 @@ umount /boot
|
||||||
umount /tgt_root
|
umount /tgt_root
|
||||||
|
|
||||||
echo "Resizing partition"
|
echo "Resizing partition"
|
||||||
|
e2fsck -f $rootfs || true
|
||||||
resize2fs $rootfs
|
resize2fs $rootfs
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
|
||||||
echo "Remove your installation media, and press ENTER"
|
echo "Remove your installation media, and press ENTER"
|
||||||
|
|
||||||
read enter
|
read enter
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
|
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
|
||||||
|
|
||||||
|
RDEPENDS_${PN} += "e2fsprogs-e2fsck"
|
||||||
|
|
Loading…
Reference in New Issue