[archiso] Change location of nbd_client.pid

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2011-08-26 04:39:03 -03:00
parent 219b43a0bf
commit 8c995ee657
2 changed files with 4 additions and 3 deletions

View File

@ -89,6 +89,7 @@ archiso_pxe_nbd_mount_handler () {
msg "::: Disconnect NBD from ${nbdserver} at /dev/nbd0" msg "::: Disconnect NBD from ${nbdserver} at /dev/nbd0"
nbd-client -d /dev/nbd0 nbd-client -d /dev/nbd0
else else
pidof nbd-client > /run/nbd_client.pid mkdir -p /run/archiso
pidof nbd-client > /run/archiso/nbd_client.pid
fi fi
} }

View File

@ -1,6 +1,6 @@
if [[ -f /run/nbd_client.pid ]]; then if [[ -f /run/archiso/nbd_client.pid ]]; then
omit_kill_nbd_client() { omit_kill_nbd_client() {
add_omit_pids $(< /run/nbd_client.pid) add_omit_pids $(< /run/archiso/nbd_client.pid)
} }
add_hook shutdown_prekillall omit_kill_nbd_client add_hook shutdown_prekillall omit_kill_nbd_client