History

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

Juan RP committed 11 years ago

Commit c4efb3d1 parent 972734f1 file · +5 −1Browse files

Unified · Split

mkimage.sh.in+5−1
@@ -151,7 +151,11 @@ parted $FILENAME toggle 1 boot · 150 unmodified lines
151LOOPDEV=$(losetup --show --find $FILENAME)151LOOPDEV=$(losetup --show --find $FILENAME)
152partx -a $LOOPDEV152partx -a $LOOPDEV
153mkfs.${BOOT_FSTYPE} $_args ${LOOPDEV}p1 >/dev/null153mkfs.${BOOT_FSTYPE} $_args ${LOOPDEV}p1 >/dev/null
154mkfs.${ROOT_FSTYPE} ${LOOPDEV}p2 >/dev/null 2>&1154
155case "$ROOT_FSTYPE" in
156 ext[34]) disable_journal="-O ^has_journal";;
157esac
158mkfs.${ROOT_FSTYPE} $disable_journal ${LOOPDEV}p2 >/dev/null 2>&1
155 159
156info_msg "Unpacking rootfs tarball ..."160info_msg "Unpacking rootfs tarball ..."
157ROOTFSDIR=$(mktemp -d)161ROOTFSDIR=$(mktemp -d)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t