Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Anton Hvornum
mkinitcpio-archiso
Commits
f671115b
Commit
f671115b
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
45107657
Changes
1
Hide whitespace changes
Inline
Side-by-side
hooks/archiso_pxe_common
View file @
f671115b
...
...
@@ -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