From d15b2b08da923cc9a44ac249336235da9152a7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 22 Apr 2024 14:17:15 +0200 Subject: [PATCH] Add generic boostrap script --- install_scripts/bootstrap.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 install_scripts/bootstrap.sh diff --git a/install_scripts/bootstrap.sh b/install_scripts/bootstrap.sh new file mode 100755 index 0000000..63e6ca1 --- /dev/null +++ b/install_scripts/bootstrap.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -o nounset +set -o errexit + +host="${1}" ; shift + +pacman -Sy --noconfirm git # yes its a partial upgrade, but thats just the live cd + +cd /root +git clone --recursive https://code.hkoerber.de/hannes/dotfiles.git + +./dotfiles/install_scripts/${host}.sh + +mv /root/dotfiles /mnt/var/lib/dotfiles + +read -p "> Ready for reboot. Press enter for shutdown, then remove the installation media and boot again " + +poweroff