autoinstall layout for guided LUKS encryption

Bug #1913986 reported by Ryan Mounce
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
subiquity
Triaged
Medium
Unassigned

Bug Description

Essentially we're looking for the guided LVM/LUKS option available via the subiquity GUI to be extended to autoinstall.

Previously we could achieve this with d-i/preseed:
```
d-i partman-auto/method string crypto
d-i partman-crypto/passphrase password TEMPORARY
d-i partman-crypto/passphrase-again password TEMPORARY
```

So it would be nice to have something like:
```
  storage:
    layout:
      name: lvm
      options:
        encrypt: True
        luks_options:
          password: TEMPORARY
```

Tags: easy fr-2309
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Yes, this makes sense and should be reasonably easy.

Changed in subiquity:
status: New → Triaged
importance: Undecided → Medium
tags: added: easy
Revision history for this message
Ryan Mounce (rmounce) wrote :

With 22.04 this is now a blocker for us, legacy netboot images are no longer published so we've lost our fallback for unattended LUKS installation.

Dan Bungert (dbungert)
tags: added: fr-2309
Revision history for this message
Ryan Mounce (rmounce) wrote :

I've implemented this & posted a PR: https://github.com/canonical/subiquity/pull/1579

```
  storage:
    layout:
      name: lvm_use_all_space
      password: TEMPORARY
```

is equivalent to

```
d-i partman-auto/method string crypto
d-i partman-crypto/passphrase password TEMPORARY
d-i partman-crypto/passphrase-again password TEMPORARY
```

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.