From: Yann E. MORIN Date: Sat, 6 Dec 2014 22:40:04 +0000 (+0100) Subject: package/mke2img: new package X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d19f8fc86a69487463e2b523b4e2a7066167674;p=buildroot.git package/mke2img: new package Currently, we are using a shell script called genext2fs, that impersonates the real genext2fs. But that script does much more than just call genextfs: it also calls tune2fs and e2fsck. Because it impersonates genext2fs, we can not easily add new options, and are constrained by the genext2fs options. But it turns out that, of all the options supported by the real genext2fs, we only really care for a subset, namely: - number of blocks - number of inodes - percentage of blocks reeserved to root - the root directory which to generate the image from So, we introduce a new host package, mke2img, that is intended to eventually replace genext2fs.sh. This new script is highly modeled from the existing genext2fs.sh, but was slightly refreshed, and a new, supposedly sane set of options has been choosen for the features we need (see above), and some new options were added, too, rather than relying on the arguments order or environment variables: -b number of blocks in the filesystem -i number of inodes in the filesystem -r percentage of reserved blocks * -d directory containing the root of the filesystem * -o output image file -G extfs generation: 2, 3, or 4 (default: 2) -R ext2 revision: 0 or 1 (default 1) -l