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 <vmlinuz386@yahoo.com.ar>
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
else
pidof nbd-client > /run/nbd_client.pid
fi
}
if [[ -f /run/nbd_client.pid ]]; then
omit_kill_nbd_client() {
add_omit_pids $(< /run/nbd_client.pid)
}
add_hook shutdown_prekillall omit_kill_nbd_client
add_hook single_prekillall omit_kill_nbd_client
fi
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