diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 2c7b5de..f223fd7 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -172,9 +172,7 @@ otherwise it is in /bin.--> ]//userinput" mode="pkgmngt"/> - + +EOF @@ -550,11 +549,17 @@ following line --> Creating Essential Files if ! grep -q tester /etc/passwd; then - echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd - echo "tester:x:101:" >> /etc/group - install -o tester -d /home/tester + echo "builder:x:101:101::/home/builder:/bin/bash" >> /etc/passwd + echo "builder:x:101:" >> /etc/group + install -o builder -d /home/builder +else + TEST_UID=$(grep tester /etc/passwd | cut -d: -f3) + TEST_GID=$(grep tester /etc/group | cut -d: -f3) + echo "builder:x:$((TEST_UID+1)):$((TEST_GID+1))::/home/builder:/bin/bash" >> /etc/passwd + echo "builder:x:$((TEST_GID+1)):" >> /etc/group + install -o builder -d /home/builder fi -chown tester:tester /var/lib/{packages,pacman} +chown builder:builder /var/lib/{packages,pacman}