Skip to content

Commit c21f06e

Browse files
committed
make autodetect function names more consistent
Signed-off-by: Zen <[email protected]>
1 parent 33c44e5 commit c21f06e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ugrd/fs/mounts.py

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

44
from pathlib import Path
55
from zenlib.util import contains, pretty_print
@@ -345,7 +345,7 @@ def _autodetect_dm(self, mountpoint) -> None:
345345
if dm_info.get('type') == 'crypto_LUKS' or source_device.name in self.get('cryptsetup', {}):
346346
autodetect_luks(self, source_device, dm_num, dm_info)
347347
elif dm_info.get('type') == 'LVM2_member':
348-
autodetect_root_lvm(self, source_device, dm_num, dm_info)
348+
autodetect_lvm(self, source_device, dm_num, dm_info)
349349
else:
350350
raise RuntimeError("Unknown device mapper device type: %s" % dm_info.get('type'))
351351

@@ -367,7 +367,7 @@ def autodetect_root_dm(self) -> None:
367367

368368
@contains('autodetect_root_lvm', "Skipping LVM autodetection, autodetect_root_lvm is disabled.", log_level=20)
369369
@contains('hostonly', "Skipping LVM autodetection, hostonly mode is disabled.", log_level=30)
370-
def autodetect_root_lvm(self, mount_loc, dm_num, dm_info) -> None:
370+
def autodetect_lvm(self, mount_loc, dm_num, dm_info) -> None:
371371
""" Autodetects LVM mounts and sets the lvm config. """
372372
if 'ugrd.fs.lvm' not in self['modules']:
373373
self.logger.info("Autodetected LVM mount, enabling the lvm module.")

0 commit comments

Comments
 (0)