Author: pierre
Date: Thu Apr 2 04:46:36 2020
New Revision: 4151
Log:
Fix LUSER creation (or no creation).
Modified:
jhalfs/trunk/LFS/master.sh
Modified: jhalfs/trunk/LFS/master.sh
==============================================================================
--- jhalfs/trunk/LFS/master.sh Thu Apr 2 02:56:51 2020 (r4150)
+++ jhalfs/trunk/LFS/master.sh Thu Apr 2 04:46:36 2020 (r4151)
@@ -528,8 +528,8 @@
fi
mk_SETUP:
- @sudo make save-luser
@\$(call echo_SU_request)
+ @sudo make save-luser
@sudo make BREAKPOINT=\$(BREAKPOINT) SETUP
@touch \$@
@@ -628,15 +628,18 @@
save-luser:
@\$(call echo_message, Building)
@LUSER_ID=\$(grep '^\$(LUSER):' /etc/passwd | cut -d: -f3); \\
- if [ -n "\$LUSER_ID" ]; then \\
+ if [ -n "\$\$LUSER_ID" ]; then \\
if [ ! -d \$(LUSER_HOME).XXX ]; then \\
mv \$(LUSER_HOME){,.XXX}; \\
mkdir \$(LUSER_HOME); \\
chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME); \\
- echo "\$LUSER_ID" > luser-id; \\
fi; \\
+ echo "\$\$LUSER_ID" > luser-id; \\
+ echo User \$(LUSER) exists with ID \$\$LUSER_ID; \\
else \\
- rm luser-id; \\
+ rm luser-id; \\
+ echo User \$(LUSER) does not exist; \\
+ echo It will be created with book instructions.; \\
fi
@\$(call housekeeping)
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page