forked from zotan/os-bootstrap-core
Fix systemd path
This commit is contained in:
parent
525bf5b46d
commit
e51c9bc31e
2
archx.sh
2
archx.sh
|
@ -312,7 +312,7 @@ basic_postinstall(){
|
|||
fi
|
||||
|
||||
if [[ -n $cinetwork ]]; then
|
||||
cp /run/systemd/network/??-cloud-init-*.link /run/systemd/network/??-cloud-init-*.network /mnt/etc/systemd/network || : # ignore failures because file doesn't exist
|
||||
cp /etc/systemd/network/??-cloud-init-*.link /etc/systemd/network/??-cloud-init-*.network /mnt/etc/systemd/network || : # ignore failures because file doesn't exist
|
||||
cat /mnt/etc/systemd/network/??-cloud-init-*.network | grep -E 'DNS|Domains' | sed 's/DNS=/nameserver /g' | sed 's/Domains=/search /g' >> /mnt/etc/resolv.conf
|
||||
archchroot "systemctl enable systemd-networkd"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue