mkimage: if root fstype is ext[34] disable the journal.

This commit is contained in:
Juan RP 2014-11-29 18:16:50 +01:00
parent 972734f802
commit c4efb3d95e

View File

@ -151,7 +151,11 @@ parted $FILENAME toggle 1 boot
LOOPDEV=$(losetup --show --find $FILENAME)
partx -a $LOOPDEV
mkfs.${BOOT_FSTYPE} $_args ${LOOPDEV}p1 >/dev/null
mkfs.${ROOT_FSTYPE} ${LOOPDEV}p2 >/dev/null 2>&1
case "$ROOT_FSTYPE" in
ext[34]) disable_journal="-O ^has_journal";;
esac
mkfs.${ROOT_FSTYPE} $disable_journal ${LOOPDEV}p2 >/dev/null 2>&1
info_msg "Unpacking rootfs tarball ..."
ROOTFSDIR=$(mktemp -d)