added installation depencencies

This commit is contained in:
2026-03-20 23:29:51 +01:00
parent 59f6eb5867
commit 5c2327392d
+25
View File
@@ -6,6 +6,27 @@ ROOT_PASSWORD=""
USERNAME="" USERNAME=""
USER_PASSWORD="" USER_PASSWORD=""
install_deps() {
echo "You will need commands like mkfs.ext4, sgisk and pacstrap."
printf "Try to install them with pacman (if you are on arch linux)? [Y/n] "
read CONFIRMATION
case "$CONFIRMATION" in
"n" | "N")
echo "Operation canceled."
return
;;
"" | "y" | "Y")
echo "Installing dependencies"
sudo pacman -S --needed --noconfirm dosfstools gptfdisk arch-install-scripts
echo ""
;;
*)
echo "Invalid input. Defaulting to 'No'."
exit 0
;;
esac
}
send_status_message() { send_status_message() {
term_width=$(tput cols 2>/dev/null || echo 80) term_width=$(tput cols 2>/dev/null || echo 80)
msg="$1" msg="$1"
@@ -195,6 +216,10 @@ setup_bootloader() {
# >------ Main execution flow ------< # >------ Main execution flow ------<
# Install dependencies on the host
install_deps
echo ""
# Ask for hostname, username, user and root passwords # Ask for hostname, username, user and root passwords
get_config_inputs get_config_inputs
echo "" echo ""