[archiso] archiso_pxe_common: add copy_resolvconf= boot option
This commit is contained in:
parent
36e8d6322f
commit
0b39407e68
2 changed files with 11 additions and 0 deletions
3
README
3
README
|
@ -90,6 +90,9 @@ INDEX
|
||||||
when option "IPAPPEND" is set to 2 or 3 in config.
|
when option "IPAPPEND" is set to 2 or 3 in config.
|
||||||
BOOTIF=<hardware-address-of-boot-interface>
|
BOOTIF=<hardware-address-of-boot-interface>
|
||||||
Default: (set via PXELINUX)
|
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
|
** hooks/archiso_pxe_nbd
|
||||||
|
|
|
@ -40,3 +40,11 @@ run_hook () {
|
||||||
fi
|
fi
|
||||||
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue