Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/hooks
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
commit27b6e8a5c7727130a0723994ac64b70066509e4a (patch)
tree91977417f16b8752fb30398a74ceead3032117ed /archiso/hooks
parente6e57856173255a4e7f97166b0c1a4d8b823cc0d (diff)
[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')
-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