diff options
author | Juan RP <xtraeme@gmail.com> | 2014-11-29 18:16:50 +0100 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-11-29 18:16:50 +0100 |
commit | c4efb3d95ec69064a0da2c4e3710fa593fd4b88a (patch) | |
tree | 4c95dddbb10c0ad6b73f0bde8ce2c6e6cffd9957 /mkimage.sh.in | |
parent | 972734f8023c29af1f1dc10f9170b8b57316b4b3 (diff) | |
download | hrmpf-c4efb3d95ec69064a0da2c4e3710fa593fd4b88a.tar.gz hrmpf-c4efb3d95ec69064a0da2c4e3710fa593fd4b88a.tar.xz hrmpf-c4efb3d95ec69064a0da2c4e3710fa593fd4b88a.zip |
mkimage: if root fstype is ext[34] disable the journal.
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r-- | mkimage.sh.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in index 493f359..11e1362 100644 --- a/mkimage.sh.in +++ b/mkimage.sh.in @@ -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) |