File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,14 @@ elif [[ "$gpu_choice" == "amd" ]]; then
9393 echo " AMD GPU selected, the driver will be installed automatically."
9494fi
9595
96- # 8. Yay installation option
96+ # 8. Init system choice
97+ init_system=$( ask_option " Which init system would you like to install?" " openrc" " runit openrc s6 dinit" )
98+
99+ # 9. Yay installation option
97100yay_choice=$( ask_yes_no " Do you want to install Yay?" " Y" )
98101
99- # 9 . Extra packages (separate with spaces)
100- read -p " Enter any extra packages (e.g., sddm sddm-runit plasma fastfetch): " extra_packages
102+ # 10 . Extra packages (separate with spaces)
103+ read -p " Enter any extra packages (e.g., sddm plasma fastfetch): " extra_packages
101104
102105# Now we will save these details to a file
103106cat > install_info.sh << EOF
@@ -110,6 +113,7 @@ kernel_choice="$kernel_choice"
110113cpu_choice="$cpu_choice "
111114gpu_choice="$gpu_choice "
112115nvidia_driver_choice="$nvidia_driver_choice "
116+ init_system="$init_system "
113117yay_choice="$yay_choice "
114118extra_packages="$extra_packages "
115119EOF
Original file line number Diff line number Diff line change 235235# ---------------------------
236236# 9. Install base system
237237# ---------------------------
238- packages=(base base-devel runit elogind-runit " ${kernel_choice} " linux-firmware " ${cpu_choice} -ucode" nano)
238+ packages=(base base-devel " ${init_system} " " elogind-${init_system} " " ${kernel_choice} " linux-firmware " ${cpu_choice} -ucode" nano)
239239if [ " ${is_btrfs:- false} " == " true" ]; then
240240 packages+=(btrfs-progs)
241241fi
@@ -292,7 +292,7 @@ run_in_chroot "bash -c 'printf \"root:%s\n\" \"$rootpass\" | chpasswd'"
292292# ---------------------------
293293# 15. Install core packages & GRUB
294294# ---------------------------
295- run_in_chroot " pacman -S --noconfirm grub efibootmgr networkmanager networkmanager-runit network-manager-applet dosfstools ${kernel_choice} -headers bluez bluez-utils bluez-runit xdg-utils xdg-user-dirs"
295+ run_in_chroot " pacman -S --noconfirm grub efibootmgr networkmanager networkmanager-${init_system} network-manager-applet dosfstools ${kernel_choice} -headers bluez bluez-utils bluez-${init_system} xdg-utils xdg-user-dirs"
296296run_in_chroot " grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB"
297297run_in_chroot " grub-mkconfig -o /boot/grub/grub.cfg"
298298
You can’t perform that action at this time.
0 commit comments