[arch-releng] [PATCH] [archiso] Update nbd hook to match newer nbd operation mode.
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Tue Oct 12 00:34:37 EDT 2010
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 at yahoo.com.ar>
---
archiso/hooks/archiso_pxe_nbd | 6 +++---
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
--
1.7.3.1
More information about the arch-releng
mailing list