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
151151 LOOPDEV=$(losetup --show --find $FILENAME)
152152 partx -a $LOOPDEV
153153 mkfs.${BOOT_FSTYPE} $_args ${LOOPDEV}p1 >/dev/null
154−mkfs.${ROOT_FSTYPE} ${LOOPDEV}p2 >/dev/null 2>&1
154+
155+case "$ROOT_FSTYPE" in
156+ ext[34]) disable_journal="-O ^has_journal";;
157+esac
158+mkfs.${ROOT_FSTYPE} $disable_journal ${LOOPDEV}p2 >/dev/null 2>&1
155159
156160 info_msg "Unpacking rootfs tarball ..."
157161 ROOTFSDIR=$(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