Disco server install fails to boot using encrypted partitions

Bug #1822730 reported by Arthur Loiret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
busybox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Performing a fresh Disco (daily build from 2019-03-31) server install with / mounted from LVM over dm-crypt (over mdadm), the boot fails just after asking the encrypted partition passphrase with the following error:

/scripts/local-top/cryptroot: line 1: fold: not found

Building a custom busybox package with "fold" binary enabled for busybox-initramfs and busybox-static configs fixes the issue.

Diff from debian/ directory:

diff --git a/config/pkg/initramfs b/config/pkg/initramfs
index 2ef98e5..5725daf 100644
--- a/config/pkg/initramfs
+++ b/config/pkg/initramfs
@@ -228,7 +228,7 @@ CONFIG_EXPR=y
 CONFIG_EXPR_MATH_SUPPORT_64=y
 # CONFIG_FACTOR is not set
 CONFIG_FALSE=y
-# CONFIG_FOLD is not set
+CONFIG_FOLD=y
 # CONFIG_FSYNC is not set
 # CONFIG_HEAD is not set
 # CONFIG_FEATURE_FANCY_HEAD is not set
diff --git a/config/pkg/udeb b/config/pkg/udeb
index 7538ae5..f9a6d4c 100644
--- a/config/pkg/udeb
+++ b/config/pkg/udeb
@@ -228,7 +228,7 @@ CONFIG_EXPR=y
 CONFIG_EXPR_MATH_SUPPORT_64=y
 # CONFIG_FACTOR is not set
 CONFIG_FALSE=y
-# CONFIG_FOLD is not set
+CONFIG_FOLD=y
 # CONFIG_FSYNC is not set
 CONFIG_HEAD=y
 CONFIG_FEATURE_FANCY_HEAD=y

It might be enough to add "fold" to the initramfs variant only.

Tags: disco
tags: added: disco
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Normally one should have plymouth installed, and fold code path shouldn't be used.

Do you not have plymouth installed, and/or does it not work in you environment?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Also, cryptsetup uses Depends: busybox-static | busybox
and both of those variants have FOLD enabled.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

sigh, looks like initramfs-tools-core now depends on busybox-initramfs, instead of using busybox nor busybox static.

Changed in busybox (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package busybox - 1:1.27.2-2ubuntu7

---------------
busybox (1:1.27.2-2ubuntu7) disco; urgency=medium

  * Enable fold in busybox-initramfs, as it appears that
    initrmafs-tools-core now uses that variant of busybox, instead of
    busybox-static or busybox. Also, potentially cryptsetup dependencies
    on busybox-static|busybox are now meaningless. LP: #1822730

 -- Dimitri John Ledkov <email address hidden> Thu, 04 Apr 2019 12:50:59 +0100

Changed in busybox (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Arthur Loiret (aloiret-ed) wrote :

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.