Commit bdd302ad authored by Gerardo Exequiel Pozzi's avatar Gerardo Exequiel Pozzi
Browse files

Avoid killing nbd-daemon on shutdown

Signed-off-by: default avatarGerardo Exequiel Pozzi <>
parent 93763a2d
......@@ -86,5 +86,7 @@ archiso_pxe_nbd_mount_handler () {
if [ "${copytoram}" = "y" ]; then
msg "::: Disconnect NBD from ${nbdserver} at /dev/nbd0"
nbd-client -d /dev/nbd0
pidof nbd-client > /run/
if [[ -f /run/ ]]; then
omit_kill_nbd_client() {
add_omit_pids $(< /run/
add_hook shutdown_prekillall omit_kill_nbd_client
add_hook single_prekillall omit_kill_nbd_client
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