]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-sysusers): always silence stdout
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 8 Feb 2025 01:24:39 +0000 (20:24 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Wed, 12 Feb 2025 01:29:59 +0000 (20:29 -0500)
systemd-sysusers does not have quiet option, so
always silence stdout (but not stderr).

Fixes: https://github.com/dracut-ng/dracut-ng/issues/1195
modules.d/60systemd-sysusers/module-setup.sh

index 0568055384339fd7b9e5ac622bd6bb62be75d15f..977695e61be1e225a3244ed64df0d174f5955aff 100755 (executable)
@@ -15,5 +15,5 @@ check() {
 install() {
     inst_sysusers basic.conf
 
-    systemd-sysusers --root="$initdir"
+    systemd-sysusers --root="$initdir" > /dev/null
 }