From 27b6e8a5c7727130a0723994ac64b70066509e4a Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Tue, 12 Oct 2010 01:28:43 -0300 Subject: [archiso] Update nbd hook to match newer nbd operation mode. Newer nbd-server uses config file instead of parameters via cmd line (deprecated). Also does not use a fixed port (oldstyle). Sample nbd-server.conf that works with this change: -- CUT HERE -- [generic] [archiso] readonly = true exportname = /tmp/archlinux.iso -- CUT HERE -- Signed-off-by: Gerardo Exequiel Pozzi --- archiso/hooks/archiso_pxe_nbd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archiso/hooks') diff --git a/archiso/hooks/archiso_pxe_nbd b/archiso/hooks/archiso_pxe_nbd index 125b75c..9f47116 100644 --- a/archiso/hooks/archiso_pxe_nbd +++ b/archiso/hooks/archiso_pxe_nbd @@ -68,11 +68,11 @@ archiso_pxe_nbd_mount_handler () { sleep 1 done - msg "::: Setup NBD from ${nbdserver}:9040 at /dev/nbd0" + msg "::: Setup NBD from ${nbdserver} at /dev/nbd0" if [ "${copytoram}" = "y" ]; then - nbd-client ${nbdserver} 9040 /dev/nbd0 + nbd-client ${nbdserver} -N archiso /dev/nbd0 else - nbd-client ${nbdserver} 9040 /dev/nbd0 -persist + nbd-client ${nbdserver} -N archiso /dev/nbd0 -persist fi archisodevice=/dev/nbd0 -- cgit v1.2.3-70-g09d2