Am 26.02.2014 03:04, schrieb Gerardo Exequiel Pozzi:
The issue here is when booting via PXE... The initcpio hook, writes on (append) etc/resolv.conf. Now, I think that I need to hack, and write to /run/systemd/network/resolv.conf instead.
* Under PXE scenario: systemd-networkd will not be used because interface rename will fail (already UP from initramfs as eth) then /run/systemd/network/resolv.conf is untouched from systemd-network.
* Under non-PXE scenario: /run/systemd/network/resolv.conf will be touched only by systemd-network.
Also I think that can be a good idea for PXE scenario if-down-eth0, on initramfs as last step, then in this case, rename does work and dhcpcd is requested again but from systemd-networkd on real-root-fs.
Why don't we just copy all renaming and networkd-related stuff to initramfs and use it for initialization there, too? For that we'd probably have to switch initramfs to systemd entirely, but we should do that anyway.