mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-01-05 08:10:00 +01:00
Merge branch 'fix-pxeboot-dhcp' into 'master'
Add archiso patch to fix DHCP after PXE boot (#19) See merge request fdupoux/sysresccd-src!50
This commit is contained in:
commit
c853c7bf5c
19
patches/archiso-fix-pxeboot-dhcp.patch
Normal file
19
patches/archiso-fix-pxeboot-dhcp.patch
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
diff -urN archiso-43-a/archiso/initcpio/hooks/archiso_pxe_common archiso-43-b/archiso/initcpio/hooks/archiso_pxe_common
|
||||
--- archiso-43-a/archiso/initcpio/hooks/archiso_pxe_common 2019-10-16 12:10:09.000000000 +0100
|
||||
+++ archiso-43-b/archiso/initcpio/hooks/archiso_pxe_common 2020-05-24 16:53:12.941000000 +0100
|
||||
@@ -61,10 +61,11 @@
|
||||
[[ -z "${copy_resolvconf}" ]] && copy_resolvconf="y"
|
||||
|
||||
if [[ "${copytoram}" == "y" ]]; then
|
||||
- if [[ -n "${bootif_dev}" ]]; then
|
||||
- ip addr flush dev "${bootif_dev}"
|
||||
- ip link set "${bootif_dev}" down
|
||||
- fi
|
||||
+ for curif in /sys/class/net/*; do
|
||||
+ netdev=${curif#/sys/class/net/}
|
||||
+ ip addr flush dev "${netdev}"
|
||||
+ ip link set "${netdev}" down
|
||||
+ done
|
||||
elif [[ "${copy_resolvconf}" != "n" && -f /etc/resolv.conf ]]; then
|
||||
cp /etc/resolv.conf /new_root/etc/resolv.conf
|
||||
fi
|
||||
Loading…
Reference in a new issue