Support LUKS with 'lvm' autoinstall storage layout
Resolves: https://bugs.launchpad.net/subiquity/+bug/1913986
This commit is contained in:
parent
65aabe527f
commit
a968b48523
|
@ -302,6 +302,13 @@ By default these will install to the largest disk in a system, but you can suppl
|
|||
|
||||
(you can just say "`match: {}`" to match an arbitrary disk)
|
||||
|
||||
When using the "lvm" layout, LUKS encryption can be enabled by supplying a password.
|
||||
|
||||
storage:
|
||||
layout:
|
||||
name: lvm
|
||||
password: LUKS_PASSPHRASE
|
||||
|
||||
The default is to use the lvm layout.
|
||||
|
||||
#### action-based config
|
||||
|
|
|
@ -912,7 +912,9 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
|
|||
log.info(f'autoinstall: running guided {name} install in mode {mode} '
|
||||
f'using {target}')
|
||||
use_lvm = name == 'lvm'
|
||||
self.guided(GuidedChoiceV2(target=target, use_lvm=use_lvm))
|
||||
password = layout.get('password', None)
|
||||
self.guided(GuidedChoiceV2(target=target, use_lvm=use_lvm,
|
||||
password=password))
|
||||
|
||||
def validate_layout_mode(self, mode):
|
||||
if mode not in ('reformat_disk', 'use_gap'):
|
||||
|
|
Loading…
Reference in New Issue