Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-03 15:18:35 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-03 15:18:35 +0200
commit7333fe109ce832dcda1daa7f363e352990e66886 (patch)
treeb63ccb39ecdad459f0848e735e1a0b30a1854d35 /archinstall/lib
parent1c3287bc813d0652bc671c120c52b99a368e31fe (diff)
Converted the raise exception into a log. Whenever blockdevice is unsure of what type it's working on, it will not log it as a debug message.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 371bf7f5..52c6e287 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -85,6 +85,8 @@ class BlockDevice():
if 'pkname' not in self.info:
raise DiskError(f'A crypt device ({self.path}) without a parent kernel device name.')
return f"/dev/{self.info['pkname']}"
+ else:
+ log(f"Unknown blockdevice type for {self.path}: {self.info['type']}", level=LOG_LEVELS.Debug)
# if not stat.S_ISBLK(os.stat(full_path).st_mode):
# raise DiskError(f'Selected disk "{full_path}" is not a block device.')