Skip to content
Snippets Groups Projects
Commit e018653a authored by Gerardo Pozzi's avatar Gerardo Pozzi
Browse files

[archiso] Set net iface down if copytoram=y (default)


This should fix FS#36749

Also flush address on specified device (default)

Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@gmail.com>
parent 5ebc4c90
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,8 @@ run_latehook () {
[[ -z "${copy_resolvconf}" ]] && copy_resolvconf="y"
if [[ "${copytoram}" == "y" ]]; then
ip address flush scope global
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment