Skip to content

Commit cd7246a

Browse files
committed
add warning about not using cryptsetup_prompt
Signed-off-by: Zen <[email protected]>
1 parent 17a31c2 commit cd7246a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ugrd/crypto/cryptsetup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '2.5.1'
2+
__version__ = '2.5.2'
33

44
from zenlib.util import contains
55

@@ -257,6 +257,8 @@ def open_crypt_device(self, name: str, parameters: dict) -> list[str]:
257257

258258
def crypt_init(self) -> list[str]:
259259
""" Generates the bash script portion to prompt for keys. """
260+
if not self['cryptsetup_prompt']:
261+
self.logger.warning("'cryptsetup_prompt' is disabled, if the 'quiet' kernel parameter is not set, the prompt may be hidden under log messages at runtime.")
260262
out = [r'einfo "Unlocking LUKS volumes, ugrd.cryptsetup version: %s"' % __version__]
261263
for name, parameters in self['cryptsetup'].items():
262264
# Check if the volume is already open, if so, skip it

0 commit comments

Comments
 (0)