First of all, affected package is dropbear-initramfs, not dropbear.

Offending line in "/usr/share/initramfs-tools/scripts/init-
bottom/dropbear" script is supposed to kill all dropbear children.

There are two problems with it:
1. The "ps" command (part of busybox, of busybox-initramfs, here 
1:1.22.0-15ubuntu1) does not support options: -eo ppid,pid
2. As mentioned, "xargs" is missing entirely in initrd

Proposed solution is based on facts, that:
- there is "ps -l" which outputs PID and PPID (as 3rd and 4th column)
- there is awk
- in this case, xargs can be easily replaced with shell construct

Solution was succesfully tested on our servers.

** Patch added: "/usr/share/initramfs-tools/scripts/init-bottom/dropbear"
   
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/1652091/+attachment/4814648/+files/dropbear.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1652091

Title:
  xargs not contained in initramdisk

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/1652091/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to