From 5c2327392df77758f03f2ad7edee0b32fafe76e2 Mon Sep 17 00:00:00 2001 From: eiiko6 Date: Fri, 20 Mar 2026 23:29:51 +0100 Subject: [PATCH] added installation depencencies --- install.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/install.sh b/install.sh index 77df283..44e5a27 100755 --- a/install.sh +++ b/install.sh @@ -6,6 +6,27 @@ ROOT_PASSWORD="" USERNAME="" 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() { term_width=$(tput cols 2>/dev/null || echo 80) msg="$1" @@ -195,6 +216,10 @@ setup_bootloader() { # >------ Main execution flow ------< +# Install dependencies on the host +install_deps +echo "" + # Ask for hostname, username, user and root passwords get_config_inputs echo ""