Fix 20-wired-dhcp.network permissions
This commit is contained in:
parent
fa94a29d63
commit
70d252584c
|
@ -378,6 +378,10 @@ main_install_gentoo_in_chroot() {
|
||||||
enable_service systemd-resolved
|
enable_service systemd-resolved
|
||||||
echo -n "[Match]\nName=en*\n\n[Network]\nDHCP=yes" > /etc/systemd/network/20-wired-dhcp.network \
|
echo -n "[Match]\nName=en*\n\n[Network]\nDHCP=yes" > /etc/systemd/network/20-wired-dhcp.network \
|
||||||
|| die "Could not write dhcp network config to '/etc/systemd/network/20-wired-dhcp.network'"
|
|| die "Could not write dhcp network config to '/etc/systemd/network/20-wired-dhcp.network'"
|
||||||
|
chown root:systemd-network /etc/systemd/network/20-wired-dhcp.network \
|
||||||
|
|| die "Could not change owner of '/etc/systemd/network/20-wired-dhcp.network'"
|
||||||
|
chmod 640 /etc/systemd/network/20-wired-dhcp.network \
|
||||||
|
|| die "Could not change owner of '/etc/systemd/network/20-wired-dhcp.network'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install ansible
|
# Install ansible
|
||||||
|
|
Loading…
Reference in New Issue