server/fs: FDE string improvements

This commit is contained in:
Dan Bungert 2023-02-01 08:46:19 -07:00
parent b8ca9c54e8
commit 3c3e467966
1 changed files with 14 additions and 13 deletions

View File

@ -96,20 +96,21 @@ log = logging.getLogger("subiquity.server.controllers.filesystem")
block_discover_log = logging.getLogger('block-discover') block_discover_log = logging.getLogger('block-discover')
system_defective_encryption_text = _(""" # for translators: 'reason' is the reason FDE is unavailable.
The model being installed requires TPM-backed encryption but this system_defective_encryption_text = _(
system does not support it (the reason given was "{unavailable_reason}"). "TPM backed full-disk encryption is not available "
""") "on this device (the reason given was \"{reason}\")."
)
system_multiple_volumes_text = _(""" system_multiple_volumes_text = _(
The model being installed defines multiple volumes, which is not currently "TPM backed full-disk encryption is not yet supported when "
supported. "the target spans multiple volumes."
""") )
system_non_gpt_text = _(""" system_non_gpt_text = _(
The model being installed defines a volume with a partition table type other "TPM backed full-disk encryption is only supported with a target volume "
than GPT, which is not currently supported. "partition table of GPT."
""") )
class NoSnapdSystemsOnSource(Exception): class NoSnapdSystemsOnSource(Exception):
@ -218,7 +219,7 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
if se.support == StorageEncryptionSupport.DEFECTIVE: if se.support == StorageEncryptionSupport.DEFECTIVE:
self._core_boot_classic_error = \ self._core_boot_classic_error = \
system_defective_encryption_text.format( system_defective_encryption_text.format(
unavailable_reason=se.unavailable_reason) reason=se.unavailable_reason)
if se.support == StorageEncryptionSupport.UNAVAILABLE: if se.support == StorageEncryptionSupport.UNAVAILABLE:
log.debug( log.debug(
"storage encryption unavailable: %r", se.unavailable_reason) "storage encryption unavailable: %r", se.unavailable_reason)