live-config user-setup passwd bug
Hello
When building for Wheezy/Sid, there is a bug [1] filed against the
passwd package which causes some verbose output when 002-user-setup is
run. As far as I can tell, the bug is fairly harmless(?) and there are
no negative affects, apart from some fugly console output in the form
of:
================================
Usage: grpck [options] [group [gshadow]]
Options:
-h, --help display this help message and exit
-r, --read-only display errors and warnings
but do not change files
-R, --root CHROOT_DIR directory to chroot into
-s, --sort sort entries by UID
================================
Looking at live-config's 002-user-setup script, I noticed that grep is
used to suppress the normal "Shadow passwords are now on", so I have
modified and attached a patch to suppress the additional output. I am
not sure that applying the patch would be ideal, but I thought that
this information might be useful to others.
Cheers,
Philip
[1]: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638263
diff --git a/scripts/config/002-user-setup b/scripts/config/002-user-setup
index f43e882..da2b778 100755
--- a/scripts/config/002-user-setup
+++ b/scripts/config/002-user-setup
@@ -84,7 +84,7 @@ EOF
chmod 0600 /etc/passwd-
/usr/lib/user-setup/user-setup-apply 2>&1 \
- | grep -v "Shadow passwords are now on"
+ | grep -v ""
set -e
# Creating state file
Reply to: