update logging again

artix
Matt C 3 years ago
parent 47f561c635
commit 04aee7236c

@ -21,6 +21,7 @@ fi
prompt "Do you need a keyboard layout other than standard US? (y/N)" prompt "Do you need a keyboard layout other than standard US? (y/N)"
KBD="$response" KBD="$response"
inf "KBD=$response"
if [[ "$KBD" == "y" || "$KBD" == "Y" ]]; then if [[ "$KBD" == "y" || "$KBD" == "Y" ]]; then
prompt "We're going to show the list of keymaps in less. Do you know how to exit less? (Y/n)" prompt "We're going to show the list of keymaps in less. Do you know how to exit less? (Y/n)"
UL="$response" UL="$response"
@ -32,6 +33,7 @@ if [[ "$KBD" == "y" || "$KBD" == "Y" ]]; then
ls /usr/share/kbd/keymaps/**/*.map.gz | less ls /usr/share/kbd/keymaps/**/*.map.gz | less
prompt "Correct keymap (omit /usr/share/kbd/keymaps and the file extension)" prompt "Correct keymap (omit /usr/share/kbd/keymaps and the file extension)"
KMP="$response" KMP="$response"
inf "KMP=$response"
loadkeys ${KMP} loadkeys ${KMP}
fi fi
@ -41,6 +43,7 @@ inf "Disks:"
fdisk -l | grep Disk | grep sectors --color=never fdisk -l | grep Disk | grep sectors --color=never
prompt "Would you like to partition manually? (y/N)" prompt "Would you like to partition manually? (y/N)"
inf "PMODE=$response"
PMODE="$response" PMODE="$response"
MANUAL="no" MANUAL="no"
@ -49,6 +52,7 @@ if [[ "$PMODE" == "y" ]]; then
MANUAL="yes" MANUAL="yes"
else else
prompt "Install target (will be WIPED COMPLETELY)" prompt "Install target (will be WIPED COMPLETELY)"
inf "DISK=$response"
DISK="$response" DISK="$response"
if ! fdisk -l ${DISK}; then if ! fdisk -l ${DISK}; then
err "Seems like $DISK doesn't exist. Did you typo?" err "Seems like $DISK doesn't exist. Did you typo?"
@ -153,6 +157,7 @@ else
read read
bash bash
prompt "All set (and partitions mounted?) (y/N)" prompt "All set (and partitions mounted?) (y/N)"
inf "STAT=$response"
STAT="$response" STAT="$response"
if [[ "$STAT" == "y" ]]; then if [[ "$STAT" == "y" ]]; then
CONFDONE="YEP" CONFDONE="YEP"
@ -186,7 +191,7 @@ else
echo ${DISK} > /mnt/diskn echo ${DISK} > /mnt/diskn
fi fi
arch-chroot /mnt /continue.sh arch-chroot /mnt /continue.sh 2>&1 | tee /mnt/var/citrine.chroot.log
rm /mnt/continue.sh rm /mnt/continue.sh
inf "Installation should now be complete." inf "Installation should now be complete."

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
sudo citrine.internal 0>&1 3>&1 | tee /var/log/citrine.log sudo citrine.internal 2>&1 | sudo tee /var/log/citrine.log
sudo cp /var/log/citrine.log /mnt/var/. sudo cp /var/log/citrine.log /mnt/var/.
echo "Run 'reboot' to restart. :)" echo "Run 'reboot' to restart. :)"

@ -109,6 +109,7 @@ pacman-key --populate archlinux
clear clear
prompt "Would you like to install a DE/WM profile? (y/N)" prompt "Would you like to install a DE/WM profile? (y/N)"
inf "DEP=$response"
DEP="$response" DEP="$response"
if [[ "$DEP" == "y" || "$DEP" == "Y" ]]; then if [[ "$DEP" == "y" || "$DEP" == "Y" ]]; then
@ -130,6 +131,7 @@ if [[ "$DEP" == "y" || "$DEP" == "Y" ]]; then
inf "(We'll add more as people ask)" inf "(We'll add more as people ask)"
inf "Please enter exactly as shown." inf "Please enter exactly as shown."
prompt "" prompt ""
inf "DE=$response"
DE="$response" DE="$response"
DM="" DM=""
if [[ "$DE" == "Budgie" ]]; then if [[ "$DE" == "Budgie" ]]; then
@ -184,6 +186,7 @@ if [[ "$DEP" == "y" || "$DEP" == "Y" ]]; then
inf "- [blank] for none" inf "- [blank] for none"
prompt "" prompt ""
ND="$response" ND="$response"
inf "ND=$ND"
if [[ "$ND" != "" ]]; then if [[ "$ND" != "" ]]; then
inf "Ok, we'll install $ND" inf "Ok, we'll install $ND"
DM="$ND" DM="$ND"
@ -212,6 +215,7 @@ MP="$response"
if [[ "$MP" != "n" ]]; then if [[ "$MP" != "n" ]]; then
prompt "Write package names" prompt "Write package names"
PKGNS="$response" PKGNS="$response"
inf "Installing: $PKGNS"
pacman -Sy --noconfirm ${PKGNS} pacman -Sy --noconfirm ${PKGNS}
fi fi

Loading…
Cancel
Save