Skip to content

Commit b33210c

Browse files
committed
actually fix path
Signed-off-by: Zen <[email protected]>
1 parent 7970e87 commit b33210c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ugrd/fs/mounts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def autodetect_root_luks(self, mount_loc, mapped_name, luks_mount) -> None:
337337
self.logger.debug("[%s] LUKS mount info: %s" % (mapped_name, luks_mount))
338338
if luks_mount.get('type') != 'crypto_LUKS':
339339
if not luks_mount.get('uuid'): # No uuid will be defined if there are detached headers
340-
if self['cryptsetup'][self.cryptsetup[self['_dm_info'][mapped_name]['name']]].get('header_file'):
340+
if self['cryptsetup'][self['_dm_info'][mapped_name]['name']].get('header_file'):
341341
raise ValueError("[%s] Unknown LUKS mount type, if using detached headers, specify 'header_file': %s" % (mount_loc.name, luks_mount.get('type')))
342342
else: # If there is some uuid and it's not LUKS, that's a problem
343343
raise RuntimeError("[%s] Unknown device mapper slave type: %s" % (self._dm_info[mapped_name]['slaves'][0], luks_mount.get('type')))

0 commit comments

Comments
 (0)