1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

repart: when using erofs and log level is not debug, use --quiet

mkfs.erofs is extremely verbose and will log every single file added
to the filesystem, which is a lot of them when building a rootfs.

(cherry picked from commit 323213cfea8b78d44f63b8a83f74fbd1f79f1775)
This commit is contained in:
Luca Boccassi 2025-02-23 19:05:24 +00:00 committed by Daan De Meyer
parent 16c3e3eac0
commit b92ea51d00

View File

@ -5992,7 +5992,8 @@ static int context_mkfs(Context *context) {
return r;
r = make_filesystem(partition_target_path(t), p->format, strempty(p->new_label), root,
p->fs_uuid, arg_discard, /* quiet = */ false,
p->fs_uuid, arg_discard,
/* quiet = */ streq(p->format, "erofs") && !DEBUG_LOGGING,
context->fs_sector_size, p->compression, p->compression_level,
extra_mkfs_options);
if (r < 0)
@ -7556,7 +7557,8 @@ static int context_minimize(Context *context) {
strempty(p->new_label),
root,
fs_uuid,
arg_discard, /* quiet = */ false,
arg_discard,
/* quiet = */ streq(p->format, "erofs") && !DEBUG_LOGGING,
context->fs_sector_size,
p->compression,
p->compression_level,
@ -7639,7 +7641,7 @@ static int context_minimize(Context *context) {
root,
p->fs_uuid,
arg_discard,
/* quiet = */ false,
/* quiet = */ streq(p->format, "erofs") && !DEBUG_LOGGING,
context->fs_sector_size,
p->compression,
p->compression_level,