2020-12-09 12:09:15 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -o nounset
|
|
|
|
|
set -o errexit
|
|
|
|
|
|
|
|
|
|
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/ares.sh /dev/sda
|
|
|
|
|
|
|
|
|
|
mv /root/dotfiles /mnt/root/dotfiles
|
2020-12-09 20:11:57 +01:00
|
|
|
cat << EOF > /mnt/root/.bash_profile
|
|
|
|
|
if /root/dotfiles/install.sh ; then
|
|
|
|
|
rm -f /root/.bash_profile
|
|
|
|
|
reboot
|
|
|
|
|
fi
|
2020-12-09 12:09:15 +01:00
|
|
|
EOF
|
|
|
|
|
|
2020-12-09 19:44:04 +01:00
|
|
|
umount -R /mnt
|
2020-12-09 20:08:00 +01:00
|
|
|
|
|
|
|
|
read -p "> Ready for reboot. Press enter for shutdown, then remove the installation media and boot again "
|
|
|
|
|
poweroff
|