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
51b7ed7f
Commit
51b7ed7f
authored
May 24, 2016
by
Christian Hesse
😜
Committed by
Gerardo Exequiel Pozzi
May 24, 2016
Browse files
only run pxe late hook if $ip is given
Signed-off-by:
Christian Hesse
<
mail@eworm.de
>
parent
ca85896b
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/initcpio/hooks/archiso_pxe_common
View file @
51b7ed7f
...
...
@@ -47,12 +47,14 @@ run_hook () {
}
run_latehook
()
{
[[
-z
"
${
copy_resolvconf
}
"
]]
&&
copy_resolvconf
=
"y"
if
[[
-n
"
${
ip
}
"
]]
;
then
[[
-z
"
${
copy_resolvconf
}
"
]]
&&
copy_resolvconf
=
"y"
if
[[
"
${
copytoram
}
"
==
"y"
]]
;
then
ip addr flush
${
bootif_dev
}
ip
link set
${
bootif_dev
}
down
elif
[[
"
${
copy_resolvconf
}
"
!=
"n"
&&
-f
/etc/resolv.conf
]]
;
then
cp
/etc/resolv.conf /new_root/etc/resolv.conf
if
[[
"
${
copytoram
}
"
==
"y"
]]
;
then
ip addr flush
${
bootif_dev
}
ip
link set
${
bootif_dev
}
down
elif
[[
"
${
copy_resolvconf
}
"
!=
"n"
&&
-f
/etc/resolv.conf
]]
;
then
cp
/etc/resolv.conf /new_root/etc/resolv.conf
fi
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