We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0f127 commit ec9f8b3Copy full SHA for ec9f8b3
system/initcpio/archiso_shutdown
system/initcpio/hooks/archiso_pxe_common
@@ -67,11 +67,13 @@ run_latehook () {
67
# shellcheck disable=SC2154
68
# defined via initcpio's parse_cmdline()
69
if [ "${copytoram}" = "y" ]; then
70
- if [ -n "${bootif_dev}" ]; then
71
- ip addr flush dev "${bootif_dev}"
72
- ip link set "${bootif_dev}" down
73
- fi
+ for curif in /sys/class/net/*; do
+ netdev=${curif#/sys/class/net/}
+ ip addr flush dev "${netdev}"
+ ip link set "${netdev}" down
74
+ done
75
elif [ "${copy_resolvconf}" != "n" ] && [ -f /etc/resolv.conf ]; then
76
+ rm -f /new_root/etc/resolv.conf
77
cp /etc/resolv.conf /new_root/etc/resolv.conf
78
fi
79
0 commit comments