|
19 | 19 | from archinstall.lib.disk.utils import ( |
20 | 20 | get_lsblk_by_mountpoint, |
21 | 21 | get_lsblk_info, |
| 22 | + get_parent_device_path, |
22 | 23 | get_unique_path_for_device, |
23 | 24 | mount, |
24 | 25 | swapon, |
@@ -1381,7 +1382,7 @@ def _add_grub_bootloader( |
1381 | 1382 | else: |
1382 | 1383 | info(f'GRUB boot partition: {boot_partition.dev_path}') |
1383 | 1384 |
|
1384 | | - parent_dev_path = device_handler.get_parent_device_path(boot_partition.safe_dev_path) |
| 1385 | + parent_dev_path = get_parent_device_path(boot_partition.safe_dev_path) |
1385 | 1386 |
|
1386 | 1387 | add_options = [ |
1387 | 1388 | '--target=i386-pc', |
@@ -1475,7 +1476,7 @@ def _add_limine_bootloader( |
1475 | 1476 |
|
1476 | 1477 | info(f'Limine EFI partition: {efi_partition.dev_path}') |
1477 | 1478 |
|
1478 | | - parent_dev_path = device_handler.get_parent_device_path(efi_partition.safe_dev_path) |
| 1479 | + parent_dev_path = get_parent_device_path(efi_partition.safe_dev_path) |
1479 | 1480 |
|
1480 | 1481 | try: |
1481 | 1482 | efi_dir_path = self.target / efi_partition.mountpoint.relative_to('/') / 'EFI' |
@@ -1538,7 +1539,7 @@ def _add_limine_bootloader( |
1538 | 1539 |
|
1539 | 1540 | config_path = boot_limine_path / 'limine.conf' |
1540 | 1541 |
|
1541 | | - parent_dev_path = device_handler.get_parent_device_path(boot_partition.safe_dev_path) |
| 1542 | + parent_dev_path = get_parent_device_path(boot_partition.safe_dev_path) |
1542 | 1543 |
|
1543 | 1544 | if unique_path := get_unique_path_for_device(parent_dev_path): |
1544 | 1545 | parent_dev_path = unique_path |
@@ -1635,7 +1636,7 @@ def _add_efistub_bootloader( |
1635 | 1636 | loader = '/EFI/Linux/arch-{kernel}.efi' |
1636 | 1637 | cmdline = [] |
1637 | 1638 |
|
1638 | | - parent_dev_path = device_handler.get_parent_device_path(boot_partition.safe_dev_path) |
| 1639 | + parent_dev_path = get_parent_device_path(boot_partition.safe_dev_path) |
1639 | 1640 |
|
1640 | 1641 | cmd_template = ( |
1641 | 1642 | 'efibootmgr', |
|
0 commit comments