prepare-root.sh: add default NM /etc config

This commit is contained in:
Harald Hoyer 2018-09-13 15:01:38 +02:00
parent a5393bfa60
commit 8d930e2784

View file

@ -333,6 +333,7 @@ if [[ -d "$sysroot"/etc/NetworkManager ]]; then
ln -fsnr "$sysroot"/var/etc/NetworkManager "$sysroot"/etc/NetworkManager ln -fsnr "$sysroot"/var/etc/NetworkManager "$sysroot"/etc/NetworkManager
cat >> "$sysroot"/usr/lib/tmpfiles.d/NetworkManager.conf <<EOF cat >> "$sysroot"/usr/lib/tmpfiles.d/NetworkManager.conf <<EOF
d /var/lib/NetworkManager 0755 root root - - d /var/lib/NetworkManager 0755 root root - -
C /var/etc/NetworkManager - - - - -
d /run/NetworkManager 0755 root root - - d /run/NetworkManager 0755 root root - -
EOF EOF
rm -fr "$sysroot"/etc/sysconfig/network-scripts rm -fr "$sysroot"/etc/sysconfig/network-scripts