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
0b39407e
Commit
0b39407e
authored
May 19, 2012
by
Gerardo Exequiel Pozzi
Browse files
[archiso] archiso_pxe_common: add copy_resolvconf= boot option
parent
36e8d632
Changes
2
Hide whitespace changes
Inline
Side-by-side
README
View file @
0b39407e
...
...
@@ -90,6 +90,9 @@ INDEX
when option "IPAPPEND" is set to 2 or 3 in config.
BOOTIF=<hardware-address-of-boot-interface>
Default: (set via PXELINUX)
* copy_resolvconf= Copy /etc/resolv.conf from initramfs to live-enviroment.
Set to "n" to skip them.
Default: "y"
** hooks/archiso_pxe_nbd
...
...
archiso/hooks/archiso_pxe_common
View file @
0b39407e
...
...
@@ -40,3 +40,11 @@ run_hook () {
fi
fi
}
run_latehook
()
{
[[
-z
"
${
copy_resolvconf
}
"
]]
&&
copy_resolvconf
=
"y"
if
[[
"
${
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