11__author__ = "desultory"
2- __version__ = "7.2.1 "
2+ __version__ = "7.3.0 "
33
44from pathlib import Path
55from re import search
@@ -436,7 +436,7 @@ def get_virtual_block_info(self):
436436 sys_block = Path ("/sys/devices/virtual/block" )
437437
438438 if not sys_block .exists ():
439- self ["autodetect_root_dm " ] = False
439+ self ["autodetect_dm " ] = False
440440 return self .logger .warning ("Virtual block devices unavailable, disabling device mapper autodetection." )
441441
442442 devices = []
@@ -450,7 +450,7 @@ def get_virtual_block_info(self):
450450 devices .append (part )
451451
452452 if not devices :
453- self ["autodetect_root_dm " ] = False
453+ self ["autodetect_dm " ] = False
454454 return self .logger .warning ("No virtual block devices found, disabling device mapper autodetection." )
455455
456456 for virt_dev in devices :
@@ -624,7 +624,7 @@ def _autodetect_dm(self, mountpoint, device=None) -> None:
624624 self .logger .debug ("Slave does not appear to be a DM device: %s" % slave )
625625
626626
627- @contains ("autodetect_root_raid " , "Skipping RAID autodetection, autodetect_root_raid is disabled." , log_level = 30 )
627+ @contains ("autodetect_raid " , "Skipping RAID autodetection, autodetect_raid is disabled." , log_level = 30 )
628628@contains ("hostonly" , "Skipping RAID autodetection, hostonly mode is disabled." , log_level = 30 )
629629def autodetect_raid (self , source_dev , dm_name , blkid_info ) -> None :
630630 """Autodetects MD RAID mounts and sets the raid config.
@@ -641,7 +641,7 @@ def autodetect_raid(self, source_dev, dm_name, blkid_info) -> None:
641641 raise AutodetectError ("[%s] Failed to autodetect MDRAID level: %s" % (dm_name , blkid_info ))
642642
643643
644- @contains ("autodetect_root_lvm " , "Skipping LVM autodetection, autodetect_root_lvm is disabled." , log_level = 20 )
644+ @contains ("autodetect_lvm " , "Skipping LVM autodetection, autodetect_lvm is disabled." , log_level = 20 )
645645@contains ("hostonly" , "Skipping LVM autodetection, hostonly mode is disabled." , log_level = 30 )
646646def autodetect_lvm (self , source_dev , dm_num , blkid_info ) -> None :
647647 """Autodetects LVM mounts and sets the lvm config."""
@@ -664,7 +664,7 @@ def autodetect_lvm(self, source_dev, dm_num, blkid_info) -> None:
664664 self ["lvm" ] = {source_dev .name : lvm_config }
665665
666666
667- @contains ("autodetect_root_luks " , "Skipping LUKS autodetection, autodetect_root_luks is disabled." , log_level = 30 )
667+ @contains ("autodetect_luks " , "Skipping LUKS autodetection, autodetect_luks is disabled." , log_level = 30 )
668668@contains ("hostonly" , "Skipping LUKS autodetection, hostonly mode is disabled." , log_level = 30 )
669669def autodetect_luks (self , source_dev , dm_num , blkid_info ) -> None :
670670 """Autodetects LUKS mounts and sets the cryptsetup config."""
@@ -748,7 +748,7 @@ def autodetect_root(self) -> None:
748748 "Root mount not found in host mounts.\n Current mounts: %s" % pretty_print (self ["_mounts" ])
749749 )
750750 root_dev = _autodetect_mount (self , "/" )
751- if self ["autodetect_root_dm " ]:
751+ if self ["autodetect_dm " ]:
752752 if self ["mounts" ]["root" ]["type" ] == "btrfs" :
753753 from ugrd .fs .btrfs import _get_btrfs_mount_devices
754754
0 commit comments