initramfs: install and run e2fsck -f before resize2fs
Fixes: SYS#522
This commit is contained in:
parent
1b5a3eb3af
commit
0cef8c4fc3
|
@ -172,11 +172,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