Add generic boostrap script

This commit is contained in:
2024-04-22 14:17:15 +02:00
parent cfbb5df774
commit d15b2b08da

19
install_scripts/bootstrap.sh Executable file
View File

@@ -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