Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tom Yan
archiso
Commits
2c99df5c
Commit
2c99df5c
authored
Nov 18, 2020
by
Francois Dupoux
Browse files
Reset network interfaces at the end of the PXE boot to allow DHCP to run
parent
3160db0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/initcpio/hooks/archiso_pxe_common
View file @
2c99df5c
...
...
@@ -67,10 +67,11 @@ run_latehook () {
# shellcheck disable=SC2154
# defined via initcpio's parse_cmdline()
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment