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>2011-07-07 15:24:24 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-07-09 15:14:50 -0300
commit12a375178ea8459f7976de707ed0b6c7ec0620d0 (patch)
tree0def9c332456f557b5a3ccadf2316468ac3b269d /archiso/hooks
parent328d740af63179745c7181038c99e5bc9b2cb2e7 (diff)
[archiso_pxe_nbd] Allow change NBD export name.
Requested at FS#25051 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, 4 insertions, 2 deletions
diff --git a/archiso/hooks/archiso_pxe_nbd b/archiso/hooks/archiso_pxe_nbd
index 484a27c..588e033 100644
--- a/archiso/hooks/archiso_pxe_nbd
+++ b/archiso/hooks/archiso_pxe_nbd
@@ -55,6 +55,8 @@ run_hook () {
nbdserver=${rootserver}
+ [[ -z "${archiso_nbd_name}" ]] && archiso_nbd_name="archiso"
+
mount_handler="archiso_pxe_nbd_mount_handler"
fi
}
@@ -74,9 +76,9 @@ archiso_pxe_nbd_mount_handler () {
msg "::: Setup NBD from ${nbdserver} at /dev/nbd0"
if [ "${copytoram}" = "y" ]; then
- nbd-client ${nbdserver} -N archiso /dev/nbd0
+ nbd-client ${nbdserver} -N ${archiso_nbd_name} /dev/nbd0
else
- nbd-client ${nbdserver} -N archiso /dev/nbd0 -persist
+ nbd-client ${nbdserver} -N ${archiso_nbd_name} /dev/nbd0 -persist
fi
archisodevice=/dev/nbd0