Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archinstall KeyError:17 #2191

Closed
krister-dahl opened this issue Oct 25, 2023 · 3 comments
Closed

Archinstall KeyError:17 #2191

krister-dahl opened this issue Oct 25, 2023 · 3 comments

Comments

@krister-dahl
Copy link

krister-dahl commented Oct 25, 2023

Hi! First a screenshot of my disclayout.
IMG_20231023_175652__01
Dual boot environment with Win10 and Ubuntu and intention of installing Arch on sdc.
When running archinstall from bootable medium I get:

root@archiso" # archinstall
Traceback (most recent call last):
File "/usr/bin/archinstall", line 5, in
from archinstall import run_as_a_module
File "/usr/lib/python3.11/site-packages/arch install/init.py", line 8, in
from.lib import disk
File "/usr/lib/python3.11/site-packages/arch
install/lib/disk/init.py", line 1, in
from .device_handler import device_handler, disk_layouts
File "/usr/lib/python3.11/site-packages/arch install/lib/disk/device_handler.py", line 649, in device_handler = DeviceHandler()

File "/usr/lib/python3.11/site-packages/archinstall/lib/disk/device_handler.py", line 39, in init
self.load_devices()
File "/usr/lib/python3.11/site-packages/arch install/lib/disk/device_handler.py", line 71, in load_devices
device_info = _DeviceInfo.from_disk(disk)
File "/usr/lib/python3.11/site-packages/arch install/lib/disk/device_model.py", line 409, in from_disk
device_type = parted.devices[device.type]
KeyError: 17

I have tried the last 3 isoreleases with same result.

@lastata
Copy link

lastata commented Oct 25, 2023

I have the same issue too. Disk config: 2x RAID0 (2 tb for each), 2 NVMe 's( one with windows11, second is the target), a dvd drive and a plug-in slot for a another HDD.
tried archiso 2023-09 and 2023-10. Same error on both

@codefiles
Copy link
Contributor

The parted.devices dict does not contain a 17 key. [1] This is defined in parted as PED_DEVICE_MD, [2] a RAID device.

Example

import parted

for key, value in parted.devices.items():
    print(key, value)

Output

0 unknown
1 scsi
2 ide
3 dac960
4 cpqarray
5 file
6 ataraid
7 i2o
8 ubd
9 dasd
10 viodasd
11 sx8
12 dm
13 xvd
14 sdmmc
15 virtblk
19 nvme

References

[1] https://github.com/dcantrell/pyparted/blob/d5870bb7a5d512c17c92a4e4fe7e9a8e7c8c3528/src/parted/__init__.py#L109-L126
[2] https://git.savannah.gnu.org/gitweb/?p=parted.git;a=blob;f=include/parted/device.in.h;h=bcee2dd4d104c871e372b40fb822c7435fd1cd2a;hb=HEAD#l51

@Torxed
Copy link
Member

Torxed commented Oct 26, 2023

Raid devices have historically always been problematic. And has been on the back burner for a while: #671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants