Commit ca85896b authored by Christian Hesse's avatar Christian Hesse 😜 Committed by Gerardo Exequiel Pozzi
Browse files

fix NBD boot without copy-to-ram

Signed-off-by: Christian Hesse's avatarChristian Hesse <>
parent 091e40e3
...@@ -25,16 +25,19 @@ archiso_pxe_nbd_mount_handler () { ...@@ -25,16 +25,19 @@ archiso_pxe_nbd_mount_handler () {
done done
msg ":: Setup NBD from ${archiso_nbd_srv} at /dev/nbd0" msg ":: Setup NBD from ${archiso_nbd_srv} at /dev/nbd0"
nbd-client ${archiso_nbd_srv} -N ${archiso_nbd_name} /dev/nbd0
if [[ "${copytoram}" != "n" ]]; then if [[ "${copytoram}" != "n" ]]; then
nbd-client ${archiso_nbd_srv} -N ${archiso_nbd_name} /dev/nbd0
copytoram="y" copytoram="y"
nbd-client ${archiso_nbd_srv} -N ${archiso_nbd_name} -systemd-mark -persist /dev/nbd0
fi fi
archisodevice=/dev/nbd0 archisodevice=/dev/nbd0
archiso_mount_handler ${newroot} archiso_mount_handler ${newroot}
msg ":: Disconnect NBD from ${archiso_nbd_srv} at /dev/nbd0" if [[ "${copytoram}" == "y" ]]; then
nbd-client -d /dev/nbd0 msg ":: Disconnect NBD from ${archiso_nbd_srv} at /dev/nbd0"
nbd-client -d /dev/nbd0
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment