[Bug 1960083] Re: dirname applet missing from initramfs

Dimitri John Ledkov 1960083 at bugs.launchpad.net
Sat Feb 5 03:43:02 UTC 2022


I wonder if zfs-initramfs should actually add a harmless copy-exec
dirname => which should either do nothing (in case busybox-initramfs
provides dirname) or copy the coreutils implementation. Without breaks.

And I think I will take this upstream as well, as it seems to me that
the upstream hook can similarly cause issues if used on stock older
releases of Ubuntu.

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

Title:
  dirname applet missing from initramfs

Status in busybox package in Ubuntu:
  Fix Committed
Status in zfs-linux package in Ubuntu:
  New

Bug description:
  The initramfs is currently being built without the dirname applet.
  This is causing issues with zfs encrypted devices, as cryptsetup is
  attempting to use dirname to determine the location of the system key.
  This results in the following error:

  /init: line 971: dirname: not found

  followed by a prompt that is missing the zpool name. For example

  "Please unlock disk keystore-" rather than "Please unlock disk
  keystore-rpool".

  After entering the password, the user is dropped to an initramfs
  shell.

  It appears that this was caused by a change in cryptsetup to suddenly
  need dirname to function properly.

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




More information about the foundations-bugs mailing list