1616
1717from archinstall .lib .disk .device_handler import device_handler
1818from archinstall .lib .disk .fido import Fido2
19- from archinstall .lib .disk .utils import get_lsblk_by_mountpoint , get_lsblk_info
19+ from archinstall .lib .disk .utils import get_lsblk_by_mountpoint , get_lsblk_info , mount
2020from archinstall .lib .models .application import ZramAlgorithm
2121from archinstall .lib .models .device import (
2222 DiskEncryption ,
@@ -360,7 +360,7 @@ def _mount_partition(self, part_mod: PartitionModification) -> None:
360360 # it would be none if it's btrfs as the subvolumes will have the mountpoints defined
361361 if part_mod .mountpoint :
362362 target = self .target / part_mod .relative_mountpoint
363- device_handler . mount (part_mod .dev_path , target , options = part_mod .mount_options )
363+ mount (part_mod .dev_path , target , options = part_mod .mount_options )
364364 elif part_mod .fs_type == FilesystemType .Btrfs :
365365 # Only mount BTRFS subvolumes that have mountpoints specified
366366 subvols_with_mountpoints = [sv for sv in part_mod .btrfs_subvols if sv .mountpoint is not None ]
@@ -377,7 +377,7 @@ def _mount_lvm_vol(self, volume: LvmVolume) -> None:
377377 if volume .fs_type != FilesystemType .Btrfs :
378378 if volume .mountpoint and volume .dev_path :
379379 target = self .target / volume .relative_mountpoint
380- device_handler . mount (volume .dev_path , target , options = volume .mount_options )
380+ mount (volume .dev_path , target , options = volume .mount_options )
381381
382382 if volume .fs_type == FilesystemType .Btrfs and volume .dev_path :
383383 # Only mount BTRFS subvolumes that have mountpoints specified
@@ -396,13 +396,13 @@ def _mount_luks_partition(self, part_mod: PartitionModification, luks_handler: L
396396 self ._mount_btrfs_subvol (luks_handler .mapper_dev , part_mod .btrfs_subvols , part_mod .mount_options )
397397 elif part_mod .mountpoint :
398398 target = self .target / part_mod .relative_mountpoint
399- device_handler . mount (luks_handler .mapper_dev , target , options = part_mod .mount_options )
399+ mount (luks_handler .mapper_dev , target , options = part_mod .mount_options )
400400
401401 def _mount_luks_volume (self , volume : LvmVolume , luks_handler : Luks2 ) -> None :
402402 if volume .fs_type != FilesystemType .Btrfs :
403403 if volume .mountpoint and luks_handler .mapper_dev :
404404 target = self .target / volume .relative_mountpoint
405- device_handler . mount (luks_handler .mapper_dev , target , options = volume .mount_options )
405+ mount (luks_handler .mapper_dev , target , options = volume .mount_options )
406406
407407 if volume .fs_type == FilesystemType .Btrfs and luks_handler .mapper_dev :
408408 # Only mount BTRFS subvolumes that have mountpoints specified
@@ -421,7 +421,7 @@ def _mount_btrfs_subvol(
421421 for subvol in sorted (subvols_with_mountpoints , key = lambda x : x .relative_mountpoint ):
422422 mountpoint = self .target / subvol .relative_mountpoint
423423 options = mount_options + [f'subvol={ subvol .name } ' ]
424- device_handler . mount (dev_path , mountpoint , options = options )
424+ mount (dev_path , mountpoint , options = options )
425425
426426 def generate_key_files (self ) -> None :
427427 match self ._disk_encryption .encryption_type :
0 commit comments