[SCM] Debian Live initramfs hook branch, master, updated. 1.154.4-1-4-g26ca21e

Daniel Baumann daniel at debian.org
Sun Jan 11 13:47:24 UTC 2009


The following commit has been merged in the master branch:
commit cc57ecd0b3e29456df5bf2aecd3eb2a042ea5bca
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