xargs not contained in initramdisk
Bug #1652091 reported by
Muelli
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dropbear (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
/usr/share/
but the initramdisk does not ship the xargs binary.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: dropbear-initramfs 2016.72-1
Uname: Linux 4.7.0-040700-
ApportVersion: 2.20.1-0ubuntu2.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu Dec 22 16:17:18 2016
InstallationDate: Installed on 2015-12-02 (386 days ago)
InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 (20151027)
SourcePackage: dropbear
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in dropbear (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: bionic |
To post a comment you must log in.
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.