mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
mkfs-util: Redirect mksquashfs output to /dev/null
The -quiet option for mksquashfs was added somewhat recently so to support older versions, let's redirect stdout of mksquashfs to /dev/null instead.
This commit is contained in:
committed by
Luca Boccassi
parent
b2f84688d9
commit
85c494f7e7
@@ -455,14 +455,16 @@ int make_filesystem(
|
||||
"-U", vol_id,
|
||||
node);
|
||||
|
||||
else if (streq(fstype, "squashfs"))
|
||||
else if (streq(fstype, "squashfs")) {
|
||||
|
||||
argv = strv_new(mkfs,
|
||||
root, node,
|
||||
"-quiet",
|
||||
"-noappend");
|
||||
|
||||
else if (streq(fstype, "erofs"))
|
||||
/* mksquashfs -quiet option is pretty new so let's redirect stdout to /dev/null instead. */
|
||||
stdio_fds[1] = -EBADF;
|
||||
|
||||
} else if (streq(fstype, "erofs"))
|
||||
|
||||
argv = strv_new(mkfs,
|
||||
"-U", vol_id,
|
||||
|
||||
Reference in New Issue
Block a user