Removed a breaking change while fixing hardware raids
This commit is contained in:
parent
67bb00c655
commit
1c3287bc81
|
|
@ -85,8 +85,6 @@ class BlockDevice():
|
||||||
if 'pkname' not in self.info:
|
if 'pkname' not in self.info:
|
||||||
raise DiskError(f'A crypt device ({self.path}) without a parent kernel device name.')
|
raise DiskError(f'A crypt device ({self.path}) without a parent kernel device name.')
|
||||||
return f"/dev/{self.info['pkname']}"
|
return f"/dev/{self.info['pkname']}"
|
||||||
else:
|
|
||||||
raise DiskError(f"Could not locate actual block device path for {self.path}")
|
|
||||||
|
|
||||||
# if not stat.S_ISBLK(os.stat(full_path).st_mode):
|
# if not stat.S_ISBLK(os.stat(full_path).st_mode):
|
||||||
# raise DiskError(f'Selected disk "{full_path}" is not a block device.')
|
# raise DiskError(f'Selected disk "{full_path}" is not a block device.')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue