From 263ef76863ea8f3d7d0a3b7f6fc2eb0580287c4c Mon Sep 17 00:00:00 2001 From: user1 Date: Wed, 26 Oct 2022 01:52:57 +0200 Subject: [PATCH] [+] Copy network config after installation --- arch-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch-install.sh b/arch-install.sh index 608c064..07a9f4f 100755 --- a/arch-install.sh +++ b/arch-install.sh @@ -1617,6 +1617,11 @@ if [ "${multicard}" == "y" ]; then echo "DRI_PRIME=1" >> ${mountpoint}/etc/environment 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 arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg