]> Git Repo - buildroot-mgba.git/commit
fs/ext2: add ability to build ext3/4 too
authorYann E. MORIN <[email protected]>
Thu, 11 Apr 2013 12:17:51 +0000 (12:17 +0000)
committerPeter Korsgaard <[email protected]>
Fri, 12 Apr 2013 12:39:24 +0000 (14:39 +0200)
commit69036c20f14de6d919bc423af32a51a84b023893
tree0f7ab1fcd0f880643c09f8a12709f07cb19250ff
parent5fbef614802d4de658a387e9306b52f31356db26
fs/ext2: add ability to build ext3/4 too

Use the host-e2fsprogs to tune2fs the generated rootfs.ext2 image,
and upgrade it to either one of ext2, ext3 or ext4.

Since calling tune2fs may require running e2fsck (tune2fs will warn
to do so when certain FS options are changed), we systematically call
e2fsck. This makes the code path simpler, and as a side-effect checks
that genext2fs did not generate garbage.

In turn, e2fsck will unconditionally add a UUID to the filesystem,
which is bad for reproducibility, so we call tune2fs again to remove
the UUID. This does not require checking the filesystem.

To ensure compatibility of Buildroot's .config, leave ext2 as the
default. Boards' .config can override this at will.

Signed-off-by: "Yann E. MORIN" <[email protected]>
Cc: Arnout Vandecappelle <[email protected]>
Cc: Peter Korsgaard <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
fs/ext2/Config.in
fs/ext2/ext2.mk
fs/ext2/genext2fs.sh
package/e2fsprogs/Config.in.host
This page took 0.035724 seconds and 4 git commands to generate.