diff options
Diffstat (limited to 'essential.sh')
-rw-r--r-- | essential.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/essential.sh b/essential.sh index 0b8afce..f12cbb4 100644 --- a/essential.sh +++ b/essential.sh @@ -8,10 +8,10 @@ pushd "${LFS}" >/dev/null || exit 1 printf "%b" "${GRN}Creating essential files and symbolic links${RST}... " if [[ -f "sources/essential" ]]; then printf "%b" "\n ${IGRN}Essential files and symbolic links already created${RST}\n" -else +else { - sudo ln -sf proc/self/mounts etc/mtab + sudo ln -sfv proc/self/mounts etc/mtab sudo bash -c 'echo "127.0.0.1 localhost $(hostname)" > etc/hosts' sudo bash -c 'cat > etc/passwd << "EOF" @@ -53,15 +53,16 @@ EOF' sudo bash -c 'echo "tester:x:"'"${TESTERUID}"'":101::/home/tester:/bin/bash" >> etc/passwd' sudo bash -c 'echo "tester:x:101:" >> etc/group' - sudo install -o "${TESTERUID}" -d home/tester + sudo install -v -o "${TESTERUID}" -d home/tester sudo touch var/log/btmp sudo touch var/log/lastlog sudo touch var/log/faillog sudo touch var/log/tmp sudo chgrp utmp var/log/lastlog - sudo chmod 664 var/log/lastlog - sudo chmod 600 var/log/btmp + sudo chmod -v 664 var/log/lastlog + sudo chmod -v 600 var/log/btmp +} >"${LFS}"/sources/log/essential.log 2>&1 sudo touch sources/essential sudo printf "%b" "${IGRN}OK${RST}\n" |