makefs: also set uuid/label for ext2/ext3
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Nov 2021 11:18:30 +0000 (12:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Nov 2021 08:12:01 +0000 (09:12 +0100)
commit8e93a614e7c20ee28f1d3b4aa51c0e4200aa2c52
tree846b9938be55f2f1da171328896f0fe023aa5fee
parent44cdeb6e33d8d2c9f32e1c46ce402d5311ae6a0b
makefs: also set uuid/label for ext2/ext3

We were only "supporting" ext4. Let's add "support", i.e. pass our optimization
options and uuid/label for the other two fses in the same family.

Nowadays there is separate code in the kernel, all three fs types are handled
by ext4 code. ext2 in particular is useful for in-memory devices: the journal
is just a waste of space there. ext3 is added for completeness mostly, since
ext4 should probably be used instead. But people might use it for testing or
for compatibility with older systems and I don't see much reason to not add
"support" here.
src/shared/mkfs-util.c