Installer crashes during manual installation with disk encryption

Bug #1925002 reported by Sai Vinoba
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Release: Xubuntu 20210419 iso

How to reproduce:
1) Boot into live-session or select 'Install...' directly
2) Choose 'Something else' for manual installation
3) Create a partition for /boot (as encrypted /boot is not supported)
4) Allocate rest of the space for encryption by choosing 'physical disk for encryption'. A single ext4 partition will be created as /dev/vda2_crypt, pre-selected to be formatted with ext4.
5) Choose mount point as `/` for this partition and proceed with installation.

Expected:
Installation completes without errors and system is bootable.

Actual:
Installation crashes at around 'configuring bootloader' stage.

EDIT: Initially checked under BIOS mode. As checked later, it also crashes under UEFI mode. For UEFI mode, following setup was used.
1) /dev/vda1 - ESP
2) /dev/vda2 - /boot
3) /dev/vda3_crypt - rest of the disk for / formatted as ext4

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubiquity 21.04.17
ProcVersionSignature: Ubuntu 5.11.0-14.15-generic 5.11.12
Uname: Linux 5.11.0-14-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.461
Date: Mon Apr 19 15:15:42 2021
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/xubuntu.seed maybe-ubiquity quiet splash ---
LiveMediaBuild: Xubuntu 21.04 "Hirsute Hippo" - Beta amd64 (20210419)
ProcEnviron:
 LANGUAGE=en_IN
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_IN
 LC_NUMERIC=C.UTF-8
RebootRequiredPkgs:
 linux-image-5.11.0-14-generic
 linux-base
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Sai Vinoba (saivinob) wrote :
Revision history for this message
Sai Vinoba (saivinob) wrote : Re: Installer crashes during manual fulldisk encryption install (single partition with ext4, no LVM/ZFS)

This is also observed on Ubuntu MATE 20210419 iso.

Also, it is reproducible on efi mode as well.

summary: - Installer crashed during manual fulldisk encryption install in legacy
- mode
+ Installer crashes during manual fulldisk encryption install (single
+ partition with ext4, no LVM/ZFS)
tags: added: ubuntu-mate
Sai Vinoba (saivinob)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Changed in ubiquity (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Changed in ubiquity (Ubuntu):
milestone: none → ubuntu-21.04
assignee: nobody → Jean-Baptiste Lallement (jibel)
Sai Vinoba (saivinob)
summary: - Installer crashes during manual fulldisk encryption install (single
- partition with ext4, no LVM/ZFS)
+ Installer crashes during manual installation with disk encryption
Changed in ubiquity (Ubuntu):
status: Triaged → In Progress
status: In Progress → Fix Committed
assignee: Jean-Baptiste Lallement (jibel) → nobody
Revision history for this message
Sai Vinoba (saivinob) wrote :

Not related to encrypted disk being single (system) partition; even with lvm setup, installation crashes as long as it was manually partitioned and was encrypted.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Right, it is related to manual/guided installation.

In manual installation mode the recovery key widget is not displayed but the value is set still, then the code fails to detect the target installation disk because it searches for the value set by partman-auto, which is empty since partitioning is done manually.

The fix for 21.04 is to clear the recovery key if the field is not displayed. It's too late to do the right fix which is to display the recovery key widget even in manual partitioning.
It will be done for 21.10 (cf bug 1925032)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 21.04.19

---------------
ubiquity (21.04.19) hirsute; urgency=medium

  [ Didier Roche ]
  [ Jean-Baptiste Lallement ]
  * Only set the recovery key when partman-auto is used (LP: #1925002)

 -- Jean-Baptiste Lallement <email address hidden> Mon, 19 Apr 2021 15:17:58 +0200

Changed in ubiquity (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Sai Vinoba (saivinob) wrote :

Testing 20210420 iso, I confirm the fix works.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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