Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
bdd302ad
Commit
bdd302ad
authored
Jun 18, 2011
by
Gerardo Exequiel Pozzi
Browse files
Avoid killing nbd-daemon on shutdown
Signed-off-by:
Gerardo Exequiel Pozzi
<
vmlinuz386@yahoo.com.ar
>
parent
93763a2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
archiso/hooks/archiso_pxe_nbd
View file @
bdd302ad
...
...
@@ -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
}
configs/releng/root-image/etc/rc.d/functions.d/omit_kill_nbd_client
0 → 100644
View file @
bdd302ad
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment