Tweak some parts of install

This commit is contained in:
natemaia 2019-08-20 23:39:09 -07:00
parent 6bf67af66b
commit 4a72bfade0

View File

@ -5,7 +5,7 @@
# Some ideas and code reworked from other resources
# AIF, Cnichi, Calamares, Arch Wiki.. Credit where credit is due
VER="2.0.53" # installer version
VER="2.0.54" # installer version
DIST="ArchLabs" # linux distributor
MNT="/mnt" # install mountpoint
ANS="/tmp/ans" # dialog answer file
@ -1485,6 +1485,11 @@ install_boot()
find $MNT/$BOOTDIR/EFI/ -maxdepth 1 -mindepth 1 -iname 'BOOT' -type d -delete
fi
if [[ ! -e $MNT/$BOOTDIR/$UCODE ]]; then
chrun "pacman -S $UCODE --noconfirm"
[[ -e $MNT/$BOOTDIR/$UCODE ]] || UCODE=""
fi
prerun_$BOOTLDR
chrun "${BCMDS[$BOOTLDR]}" 2>$ERR
errshow 1 "${BCMDS[$BOOTLDR]}"
@ -1515,6 +1520,7 @@ install_boot()
install_user()
{
rm -f $MNT/root/.zshrc # remove welcome message from root zshrc
chrun "chpasswd <<< 'root:$ROOT_PASS'" 2>$ERR
errshow 1 "set root password"
if [[ $MYSHELL != "/usr/bin/zsh" ]]; then # root uses zsh by default, change it if something else was chosen