Minor todos noted, and minor fs fix

dialog
Matt C 3 years ago
parent 0591f5a992
commit e3be5d0771

@ -104,7 +104,7 @@ echo "EFI=$EFI"
dumptitle="Please confirm" dumptitle="Please confirm"
if [[ "$EFI" == "yes" ]]; then if [[ "$EFI" == "yes" ]]; then
dump "This PC seems to *have* booted with UEFI. Press enter to confirmor Control+C to cancel" dump "This PC seems to *have* booted with UEFI. Press enter to confirm, or Control+C to cancel"
else else
dump "This PC seems to *not* have booted with UEFI. Press enter to aknowledge, or press Control+C if this seems wrong." dump "This PC seems to *not* have booted with UEFI. Press enter to aknowledge, or press Control+C if this seems wrong."
fi fi
@ -145,7 +145,7 @@ if [[ "$MANUAL" == "no" ]]; then
else else
if [[ "$EFI" == "yes" ]]; then if [[ "$EFI" == "yes" ]]; then
inf "Initializing ${DISK} as EFI" inf "Initializing ${DISK} as EFI"
mkfs.vfat ${DISK}1 mkfs.vfat -F32 ${DISK}1
mkfs.ext4 ${DISK}2 mkfs.ext4 ${DISK}2
mount ${DISK}2 /mnt mount ${DISK}2 /mnt
mkdir -p /mnt/efi mkdir -p /mnt/efi
@ -159,7 +159,7 @@ if [[ "$MANUAL" == "no" ]]; then
else else
clear clear
dumptitle="Read carefully." dumptitle="Read carefully!"
dump "You have chosen manual partitioning.\ dump "You have chosen manual partitioning.\
We're going to drop to a shell for you to partition, but first, PLEASE READ these notes.\ We're going to drop to a shell for you to partition, but first, PLEASE READ these notes.\
@ -201,16 +201,17 @@ ping -c 1 getcryst.al
if [[ ! "$?" == "0" ]]; then if [[ ! "$?" == "0" ]]; then
dumptitle="Error!" dumptitle="Error!"
dump "It seems like this system can't reach the internet. Exiting." dump "It seems like this system can't reach the internet. Failing here."
umount -l /mnt
exit 1 exit 1
fi fi
inf "Setting up base Crystal System" inf "Setting up base Crystal System"
crystalstrap /mnt base linux linux-firmware systemd-sysvcompat networkmanager grub crystal-grub-theme man-db man-pages texinfo nano sudo curl archlinux-keyring neofetch dialog crystalstrap /mnt base linux linux-firmware systemd-sysvcompat networkmanager grub crystal-grub-theme man-db man-pages texinfo micro sudo curl archlinux-keyring neofetch dialog
if [[ ! "$?" == "0" ]]; then if [[ ! "$?" == "0" ]]; then
inf "CrystalStrap had some error. Retrying." inf "CrystalStrap had some error. Retrying."
crystalstrap /mnt base linux linux-firmware systemd-sysvcompat networkmanager grub crystal-grub-theme man-db man-pages texinfo nano sudo curl archlinux-keyring neofetch dialog crystalstrap /mnt base linux linux-firmware systemd-sysvcompat networkmanager grub crystal-grub-theme man-db man-pages texinfo micro sudo curl archlinux-keyring neofetch dialog
fi fi
if [[ "$EFI" == "yes" ]]; then if [[ "$EFI" == "yes" ]]; then

@ -32,6 +32,8 @@ msgbox(){
# -------------------------- # --------------------------
clear clear
# TODO: How might we make a list select of timezones?
TZ="/usr/share/LMAO/XD" TZ="/usr/share/LMAO/XD"
while [[ ! -f $TZ ]]; do while [[ ! -f $TZ ]]; do
msgbox "Pick a time zone (Format: America/New_York , Europe/London, etc)" msgbox "Pick a time zone (Format: America/New_York , Europe/London, etc)"
@ -48,6 +50,8 @@ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf echo "LANG=en_US.UTF-8" > /etc/locale.conf
clear clear
# Todo: List-select of locales somehow
prompt "Do you need more locales than just en_US? (y/N)" prompt "Do you need more locales than just en_US? (y/N)"
echo "MORE=$response" echo "MORE=$response"
MORE="$response" MORE="$response"

Loading…
Cancel
Save