pxe: recover netboot stuff
yes, finally this is needed too
This commit is contained in:
parent
5bf01202dc
commit
7bc3e4b69d
|
@ -64,6 +64,11 @@ install_netboot() {
|
||||||
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" ]; then
|
if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" ]; then
|
||||||
mkdir -p "${tftp_path}/pxelinux.cfg"
|
mkdir -p "${tftp_path}/pxelinux.cfg"
|
||||||
cd "${tftp_path}"
|
cd "${tftp_path}"
|
||||||
|
if [ -f "${tftp_path}/netboot.tar.gz" ]; then
|
||||||
|
wget http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz
|
||||||
|
tar xvf netboot.tar.gz
|
||||||
|
rm -rf "${tftp_path}/pxelinux.cfg"
|
||||||
|
fi
|
||||||
extract_live_parts_for_tftp
|
extract_live_parts_for_tftp
|
||||||
|
|
||||||
cat > "${tftp_path}/pxelinux.cfg/default" <<END
|
cat > "${tftp_path}/pxelinux.cfg/default" <<END
|
||||||
|
|
Loading…
Reference in New Issue