[SCM] Debian Live initramfs hook branch, master, updated. 1.154.4-1-4-ga1a9bd0
Daniel Baumann
daniel at debian.org
Sat Jan 10 21:08:50 UTC 2009
The following commit has been merged in the master branch:
commit a259b540371d8adca9da0a15b669c17361aa11cc
Author: Daniel Baumann <daniel at debian.org>
Date: Sat Jan 10 22:01:06 2009 +0100
Silencing grep call on /etc/passwd.
diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser
index 4c0fe80..9295070 100755
--- a/scripts/live-bottom/10adduser
+++ b/scripts/live-bottom/10adduser
@@ -58,7 +58,7 @@ set passwd/username
set passwd/user-uid
EOF
-if ! grep "${USERNAME}" /root/etc/passwd
+if ! grep -qs "${USERNAME}" /root/etc/passwd
then
echo "The default user (${USERNAME}) is not present,"
first_user=$(grep '^[^:]*:[^:]*:[12]\?[0-9][0-9][0-9][0-9]:' /root/etc/passwd | head -1 | cut -f1 -d ':')
--
Debian Live initramfs hook
More information about the debian-live-changes
mailing list