[+] Copy network config after installation

This commit is contained in:
user1 2022-10-26 01:52:57 +02:00
parent b64a4e2978
commit 263ef76863

View file

@ -1617,6 +1617,11 @@ if [ "${multicard}" == "y" ]; then
echo "DRI_PRIME=1" >> ${mountpoint}/etc/environment echo "DRI_PRIME=1" >> ${mountpoint}/etc/environment
fi fi
# Kopiere Netzwerkonfigurationen wie WLAN-Passwörter (falls vorhanden)
if [ -f "/etc/NetworkManager/system-connections/*" ]; then
cp -v /etc/NetworkManager/system-connections/* ${mountpoint}/etc/NetworkManager/system-connections/
fi
touch ${mountpoint}/etc/grub-snapshot touch ${mountpoint}/etc/grub-snapshot
arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg