Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-06-29 09:33:14 -0400
committerGitHub <noreply@github.com>2023-06-29 15:33:14 +0200
commitffb9366280803578bd47f2d7102a5772fc44caab (patch)
treed62bf334e8115c38fe0353f4a18f2fd7dc6881dd /archinstall/lib/disk
parent58bccccd5d2048dd002ec0f2efeb185e480a72bd (diff)
Skip rom devices (#1906)
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/device_handler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index 2c88e382..9acf0999 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -45,6 +45,9 @@ class DeviceHandler(object):
block_devices = {}
for device in getAllDevices():
+ if get_lsblk_info(device.path).type == 'rom':
+ continue
+
try:
disk = Disk(device)
except DiskLabelException as err: