From 8e4a592db1fe2ee0595bb444d5f67e817d88174a Mon Sep 17 00:00:00 2001 From: mfgbhatti Date: Sat, 19 Feb 2022 14:31:12 +0000 Subject: [PATCH] updates --- 1-setup.sh | 12 +++++++++--- archtitus.sh | 7 +++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/1-setup.sh b/1-setup.sh index 2cc5650..4f43e63 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -56,7 +56,7 @@ sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf # pacman -Sy --noconfirm refresh_pacman -echo "Installing desktop" +echo "Installing $DESKTOP" case "$DESKTOP" in "default") while IFS= read -r LINE; do @@ -187,7 +187,7 @@ systemd) else echo -e "title\tArchTitus\nlinux\t/vmlinuz-linux\ninitrd\t/initramfs-linux.img\ninitrd\t/$IMG\noptions\troot=PARTUUID=$PART_UUID rw" >/boot/loader/entries/arch.conf fi - echo -e "default arch\ntimeout 5" >/boot/loader/loader.conf + echo -e "default arch\ntimeout\t5" >/boot/loader/loader.conf else echo "ERROR! Systemd-boot is not supported for BIOS systems" exit 1 @@ -220,7 +220,7 @@ none) ;; esac -echo "Adding User" +echo "Adding User and hostname" if [ "$(id -u)" = "0" ]; then if [[ "$LAYOUT" -eq 1 ]]; then groupadd libvirt @@ -238,10 +238,16 @@ fi # Making sure to edit mkinitcpio conf if luks is selected # add encrypt in mkinitcpio.conf before filesystems in hooks + if [[ "$LVM" -eq 1 ]]; then + echo "LVM hooks added" sed -i "/^HOOK/s/filesystems/${HOOKS[*]}/" /etc/mkinitcpio.conf elif [[ "$LUKS" -eq 1 ]]; then + echo "LUKS hooks added" sed -i "s/^HOOK.*/HOOKS=(${HOOKS[*]})/" /etc/mkinitcpio.conf +elif [[ "$LAYOUT" -eq 1 ]]; then + echo "Btrfs module added" + sed -i '/^MODULES=/s/(/(btrfs/' /etc/mkinitcpio.conf fi if [[ -f "/etc/mkinitcpio.conf" ]]; then diff --git a/archtitus.sh b/archtitus.sh index 5a727c4..af63ee2 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -63,6 +63,13 @@ sequence() { arch-chroot /mnt /root/ArchTitus/1-setup.sh arch-chroot /mnt /usr/bin/runuser -u "$USERNAME" -- /home/"$USERNAME"/ArchTitus/2-user.sh arch-chroot /mnt /root/ArchTitus/3-post-setup.sh + logo + echo -ne " +------------------------------------------------------------------------ + Automated Arch Linux Installer +------------------------------------------------------------------------- + Done - Please Eject Install Media and Reboot +" } logo