I patched this issue with the following fragment
if PID="$(cat /run/dropbear.pid)" 2>/dev/null &&
[ "$(readlink -f "/proc/$PID/exe")" = /sbin/dropbear ]; then
log_begin_msg "Stopping dropbear"
# Patch issue #1804508
# Kill all children and the parent dropbear
kill -TERM $(ps l | awk '$4~/^'$PID'$/ {print $3}') $PID
log_end_msg
fi
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1804508
Title:
dropbear-initramfs init-bottom script uses wrong ps options, can't
kill descendants
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/1804508/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs