mkimage: if root fstype is ext[34] disable the journal.
This commit is contained in:
parent
972734f802
commit
c4efb3d95e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user