From 49e2745200dfad6d1cc21f2d49285e73819c6d05 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 2 Apr 2020 11:54:50 +0000 Subject: [PATCH] Further fix user creation (or no) --- LFS/master.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LFS/master.sh b/LFS/master.sh index 2a9635e..b1d2a9c 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -627,7 +627,7 @@ create-sbu_du-report: mk_BOOT save-luser: @\$(call echo_message, Building) - @LUSER_ID=\$(grep '^\$(LUSER):' /etc/passwd | cut -d: -f3); \\ + @LUSER_ID=\$\$(grep '^\$(LUSER):' /etc/passwd | cut -d: -f3); \\ if [ -n "\$\$LUSER_ID" ]; then \\ if [ ! -d \$(LUSER_HOME).XXX ]; then \\ mv \$(LUSER_HOME){,.XXX}; \\ @@ -637,7 +637,7 @@ save-luser: echo "\$\$LUSER_ID" > luser-id; \\ echo User \$(LUSER) exists with ID \$\$LUSER_ID; \\ else \\ - rm luser-id; \\ + rm -f luser-id; \\ echo User \$(LUSER) does not exist; \\ echo It will be created with book instructions.; \\ fi