[arch-releng] [RFCv2] [PATCH] [archiso] Disable dhcp service and network rename on PXE
28 Sep
2013
28 Sep
'13
6:18 a.m.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> --- archiso/initcpio/hooks/archiso_pxe_common | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archiso/initcpio/hooks/archiso_pxe_common b/archiso/initcpio/hooks/archiso_pxe_common index d8ac709..ce78425 100644 --- a/archiso/initcpio/hooks/archiso_pxe_common +++ b/archiso/initcpio/hooks/archiso_pxe_common @@ -47,4 +47,9 @@ run_latehook () { if [[ "${copy_resolvconf}" != "n" && -f /etc/resolv.conf ]]; then cp /etc/resolv.conf /new_root/etc/resolv.conf fi + + if [[ -n "${ip}" ]]; then + ln -s /dev/null /new_root/etc/udev/rules.d/80-net-name-slot.rules + rm /new_root/etc/udev/rules.d/81-dhcpcd.rules + fi } -- 1.8.4
4102
Age (days ago)
4102
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gerardo Exequiel Pozzi