summaryrefslogtreecommitdiff
path: root/archiso/hooks/archiso_pxe_nbd
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-10-12 01:28:43 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2010-10-12 01:33:04 -0300
commit24885e4c81a690b8d99b033a82ac119bc219ee30 (patch)
tree3142fcb03db8901fb252104f3236d180af1baf05 /archiso/hooks/archiso_pxe_nbd
parentcc59ba29a047fc0f1b03d354b4272a5c53064484 (diff)
downloadarchiso32-24885e4c81a690b8d99b033a82ac119bc219ee30.tar.xz
[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 <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/hooks/archiso_pxe_nbd')
-rw-r--r--archiso/hooks/archiso_pxe_nbd6
1 files changed, 3 insertions, 3 deletions
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