Fix automated install after bootstrapping

This commit is contained in:
2020-12-09 20:11:57 +01:00
parent 5205943888
commit 2b21d753f3

View File

@@ -11,11 +11,11 @@ git clone --recursive https://code.hkoerber.de/hannes/dotfiles.git
./dotfiles/install_scripts/ares.sh /dev/sda
mv /root/dotfiles /mnt/root/dotfiles
cat << EOF > /mnt/root/.bashrc
set -o errexit
/root/dotfiles/install.sh
rm /root/.bashrc
cat << EOF > /mnt/root/.bash_profile
if /root/dotfiles/install.sh ; then
rm -f /root/.bash_profile
reboot
fi
EOF
umount -R /mnt