-# We cannot always automatically create the user 'lfs' because the installation media
-# can be a CD-ROM (read-only)
-# If installing from some kind of live-CD, simply install as root without the LFS
-# user :)
-if ! grep "lfs" /etc/passwd 1> /dev/null 2>&1; then
+# We cannot always automatically create the user 'lfs' because the installation
+# media can be a CD-ROM (read-only) If installing from some kind of live-CD,
+# simply install as root without the LFS user :)
+if ! grep -q "lfs" /etc/passwd; then
+ groupadd -f lfs