Skip to content

Commit 6c4ec0f

Browse files
committed
fix variable usage
Signed-off-by: Zen <[email protected]>
1 parent f1253f0 commit 6c4ec0f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ugrd/fs/mounts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ def _autodetect_dm(self, mountpoint='/') -> None:
238238
raise ValueError("Device mapper device name mismatch: %s != %s" % (mount_loc.name, self._dm_info[mapped_name]['name']))
239239

240240
self.logger.debug("[%s] Device mapper info: %s" % (mount_loc.name, self._dm_info[mapped_name]))
241-
242-
if dm_mount.get('type') == 'crypto_LUKS' or mapped_name in self['cryptsetup']:
241+
if dm_mount.get('type') == 'crypto_LUKS' or mount_loc.name in self['cryptsetup']:
243242
return autodetect_root_luks(self, mount_loc, mapped_name, dm_mount)
244243
elif dm_mount.get('type') == 'LVM2_member':
245244
return autodetect_root_lvm(self, mount_loc, mapped_name, dm_mount)

0 commit comments

Comments
 (0)