]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: Don't silence mkfs.erofs if on a tty
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Sat, 3 Jan 2026 12:11:38 +0000 (13:11 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 3 Jan 2026 20:17:19 +0000 (05:17 +0900)
mkfs.erofs is only sometimes verbose when not on a TTY, so let's not
silence it if we're on a TTY.

src/repart/repart.c

index ef80da0dce1af556173236e2dff3a2a73b223620..cc7955a64f15892cb81b525ff3ab9de8bf7108c6 100644 (file)
@@ -2730,7 +2730,7 @@ static MakeFileSystemFlags partition_mkfs_flags(const Partition *p) {
         if (arg_discard)
                 flags |= MKFS_DISCARD;
 
-        if (streq(p->format, "erofs") && !DEBUG_LOGGING)
+        if (streq(p->format, "erofs") && !DEBUG_LOGGING && !isatty_safe(STDERR_FILENO))
                 flags |= MKFS_QUIET;
 
         FOREACH_ARRAY(cf, p->copy_files, p->n_copy_files)