Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
a9e7b0d5
Commit
a9e7b0d5
authored
May 28, 2016
by
Christian Hesse
😜
Committed by
Gerardo Exequiel Pozzi
May 28, 2016
Browse files
flush and set down only if boot interface is known
Signed-off-by:
Christian Hesse
<
mail@eworm.de
>
parent
ca288915
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/initcpio/hooks/archiso_pxe_common
View file @
a9e7b0d5
...
...
@@ -52,8 +52,10 @@ run_latehook () {
[[
-z
"
${
copy_resolvconf
}
"
]]
&&
copy_resolvconf
=
"y"
if
[[
"
${
copytoram
}
"
==
"y"
]]
;
then
ip addr flush dev
"
${
bootif_dev
}
"
ip
link set
"
${
bootif_dev
}
"
down
if
[[
-n
"
${
bootif_dev
}
"
]]
;
then
ip addr flush dev
"
${
bootif_dev
}
"
ip
link set
"
${
bootif_dev
}
"
down
fi
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