[archiso] Change location of nbd_client.pid
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
219b43a0bf
commit
8c995ee657
@ -89,6 +89,7 @@ archiso_pxe_nbd_mount_handler () {
|
||||
msg "::: Disconnect NBD from ${nbdserver} at /dev/nbd0"
|
||||
nbd-client -d /dev/nbd0
|
||||
else
|
||||
pidof nbd-client > /run/nbd_client.pid
|
||||
mkdir -p /run/archiso
|
||||
pidof nbd-client > /run/archiso/nbd_client.pid
|
||||
fi
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
if [[ -f /run/nbd_client.pid ]]; then
|
||||
if [[ -f /run/archiso/nbd_client.pid ]]; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user