I took a crack at patching this. Works without complaints for cryptroot-unlock as shipped with Ubuntu 18.04 Server.
Apply with: $ cd /usr/share/cryptsetup/initramfs/bin/ $ sudo patch -bp1 < /path/to/cryptroot-unlock-neutered-busybox-progs.patch $ sudo update-initramfs -uk all Problems were: 1) Busybox `ps` takes no (useful) args. 2) Busybox `grep` does not accept -z (NULL terminated line handling). 3) Busybox has no `usleep`, it DOES have a `sleep` that accepts fractional seconds. ** Patch added: "Fix cryptroot-unlock for neutered Busybox env" https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1651818/+attachment/5151893/+files/cryptroot-unlock-neutered-busybox-progs.patch -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to busybox in Ubuntu. https://bugs.launchpad.net/bugs/1651818 Title: busybox-initramfs needs different compile options to work with cryptroot-unlock Status in busybox package in Ubuntu: Confirmed Status in cryptsetup package in Ubuntu: Confirmed Bug description: The cryptroot-unlock script in the cryptsetup package does not work in initramfs. It fails because "ps -e" is not available in busybox for initramfs. When building the package with CONFIG_DESKTOP=y CONFIG_EXTRA_COMPAT=y the needed commands (ps, grep) with parameter are there and it works. Tetsted on Ubuntu GNOME 16.10. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1651818/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp