mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 02:25:03 +08:00
d48bc60459
People are getting surprised by mke2fs creating filesystems with different defaults than earlier versions of mke2fs if mke2fs.conf is not present. Having gotten two complaints about ramdisks getting created by with 4k blocksizes which then blow up when the ramdisk is mounted with a "Magic mismatch, very weird" error message from the kernel, let's fix this by making sure mke2fs has a built-in version of mke2fs.conf file. People can still override the built-in version of mke2fs.conf by editing /etc/mke2fs.conf, but this maintains the previous behavior. Addresses-Sourceforge-Bug: #1745818 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
13 lines
140 B
Awk
13 lines
140 B
Awk
#!/bin/awk
|
|
BEGIN {
|
|
printf("const char *mke2fs_default_profile = \n");
|
|
}
|
|
|
|
{
|
|
printf(" \"%s\\n\"\n", $0);
|
|
}
|
|
|
|
END {
|
|
printf(";\n", str)
|
|
}
|