Added new scripts

This commit is contained in:
2022-02-25 18:22:57 +01:00
parent 235327794e
commit b1904e21c2
4 changed files with 87 additions and 38 deletions

View File

@@ -20,7 +20,19 @@ echo "root:$1" | chpasswd
grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
# 4 finalize
# configure network
echo "[Match]" > /etc/systemd/network/20-wired.network
echo "Name=enp1s0" >> /etc/systemd/network/20-wired.network
echo "[Network]" >> /etc/systemd/network/20-wired.network
echo "DHCP=yes" >> /etc/systemd/network/20-wired.network
echo "DNS=1.1.1.1" >> /etc/systemd/network/20-wired.network
# enable networkd
systemctl enable systemd-networkd
# enable resolved
systemctl enable systemd-resolved
# curl the installation script
curl $INSTALL_LOCATION/xabs.sh > /home/xabs.sh
# cleanup
rm /home/post-chroot.sh
sh xabs.sh