fix networking.

This commit is contained in:
Matt Knoop
2025-12-08 22:02:35 -07:00
parent 98e8ee8800
commit fb75cc36df
8 changed files with 60 additions and 29 deletions

View File

@@ -9,6 +9,9 @@ cd "$(dirname "$0")"
DIR="$(dirname "$0")"
cd ..
echo $PWD
if mountpoint -q "./outputs/chroot/proc/"; then
umount -lf "./outputs/chroot/proc/"
fi
if [ ! -d ./outputs/root/bin ]; then
rm -rf './outputs/root'
@@ -25,6 +28,8 @@ if mountpoint -q "./outputs/chroot/proc/"; then
fi
mount --bind /proc ./outputs/chroot/proc
cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh
cp ./config/interfaces.network ./outputs/chroot/etc/systemd/network/10-all.network
cp ./config/resolved.conf ./outputs/chroot/etc/systemd/resolved.conf
chmod +x ./outputs/chroot/filesystem_chroot_install.sh
chroot ./outputs/chroot /bin/bash -c "/filesystem_chroot_install.sh"
cd $DIR