Added bits that should fix networking both in chroot and after install

This commit is contained in:
2025-12-31 15:23:02 -05:00
parent fd1a033bd9
commit 74f884f7a0
2 changed files with 14 additions and 0 deletions

View File

@@ -105,4 +105,16 @@ elif [[ "${1}" == '--elementary' ]]; then
-pogAXtlHrDx \
/etc/apt/trusted.gpg.d/{elementary,patches}.key.asc \
/mnt/etc/apt/trusted.gpg.d/
elif [[ "${1}" == '--network' ]]; then
mkdir \
-p \
/mnt/run/systemd/resolve/
mount \
--bind \
/run/systemd/resolve/stub-resolv.conf \
/mnt/run/systemd/resolve/stub-resolv.conf
touch \
/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
fi

View File

@@ -74,6 +74,8 @@ fi
if [[ "${ID}" == 'debian' ]]; then
"${baseDir}/debian.sh" --network-interfaces
elif [[ "${ID}" == 'elementary' ]]; then
"${baseDir}/elementary.sh" --network
fi
if [[ "${ID}" == 'elementary' ]]; then