1edaf15cef
One hook only setup the network device (archiso_pxe_common) the other setup the NBD client (archiso_pxe_nbd). New bootparam: archiso_pxe_srv=IP Allow to set an IP different from the PXE server. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
20 lines
329 B
Bash
20 lines
329 B
Bash
# vim: set ft=sh:
|
|
|
|
build ()
|
|
{
|
|
MODULES="nbd"
|
|
BINARIES=""
|
|
FILES=""
|
|
SCRIPT="archiso_pxe_nbd"
|
|
|
|
add_binary "/usr/sbin/nbd-client" "/bin/nbd-client"
|
|
add_file "/lib/initcpio/archiso_pxe_nbd" "/archiso_pxe_nbd"
|
|
}
|
|
|
|
help ()
|
|
{
|
|
cat<<HELPEOF
|
|
This hook loads the necessary modules for boot via PXE and NBD.
|
|
HELPEOF
|
|
}
|