11__author__ = 'desultory'
2- __version__ = '4.15.1 '
2+ __version__ = '4.15.2 '
33
44from pathlib import Path
55from 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