initramfs: install and run e2fsck -f before resize2fs

Fixes: SYS#522
This commit is contained in:
Henning Heinold 2014-08-26 16:34:55 +02:00 committed by Holger Hans Peter Freyther
parent 1b5a3eb3af
commit 0cef8c4fc3
2 changed files with 3 additions and 1 deletions

View File

@ -172,11 +172,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"