We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1253f0 commit 6c4ec0fCopy full SHA for 6c4ec0f
src/ugrd/fs/mounts.py
@@ -238,8 +238,7 @@ def _autodetect_dm(self, mountpoint='/') -> None:
238
raise ValueError("Device mapper device name mismatch: %s != %s" % (mount_loc.name, self._dm_info[mapped_name]['name']))
239
240
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']:
+ if dm_mount.get('type') == 'crypto_LUKS' or mount_loc.name in self['cryptsetup']:
243
return autodetect_root_luks(self, mount_loc, mapped_name, dm_mount)
244
elif dm_mount.get('type') == 'LVM2_member':
245
return autodetect_root_lvm(self, mount_loc, mapped_name, dm_mount)
0 commit comments