From 1edaf15cef3420484d1dfbf08de43fe8d800ab64 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Mon, 28 Nov 2011 12:28:03 -0300 Subject: [archiso] Split archiso_pxe_nbd in two hooks. 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 --- README | 10 +++++++-- archiso/Makefile | 4 ++++ archiso/hooks/archiso_pxe_common | 34 ++++++++++++++++++++++++++++ archiso/hooks/archiso_pxe_nbd | 45 ++++++++------------------------------ archiso/install/archiso_pxe_common | 24 ++++++++++++++++++++ archiso/install/archiso_pxe_nbd | 9 -------- configs/releng/build.sh | 2 +- configs/releng/mkinitcpio.conf | 2 +- 8 files changed, 81 insertions(+), 49 deletions(-) create mode 100644 archiso/hooks/archiso_pxe_common create mode 100644 archiso/install/archiso_pxe_common diff --git a/README b/README index 4588042..0dd2179 100644 --- a/README +++ b/README @@ -63,7 +63,7 @@ INDEX Default: (architecture of running kernel) -** hooks/archiso_pxe_nbd +** hooks/archiso_pxe_common * ip= This parameter is setup automatically by PXELINUX when option "IPAPPEND" is set to 1 or 2 in config. @@ -73,8 +73,13 @@ INDEX when option "IPAPPEND" is set to 2 or 3 in config. BOOTIF= Default: (set via PXELINUX) + +** hooks/archiso_pxe_nbd + * archiso_nbd_name= Set NBD export name used by the server. Default: archiso +* archiso_nbd_srv= Set an IP address where NBD reside. + Default: "${pxeserver}" (The