[rawfs] Fix crash if bogus is unset
- fixes: 12:44:25 [6]: Python Error: <class 'TypeError'> 'builtin_function_or_method' object is not subscriptable File "/usr/lib/calamares/modules/rawfs/main.py", line 188, in run item.copy(filesystems.index(item), len(filesystems)) File "/usr/lib/calamares/modules/rawfs/main.py", line 99, in copy if libcalamares.job.configuration["bogus"]:
This commit is contained in:
parent
8465dcbc19
commit
40dd34c7d0
@ -96,7 +96,7 @@ class RawFSItem:
|
|||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
libcalamares.utils.debug("Copying {} to {}".format(self.source, self.destination))
|
libcalamares.utils.debug("Copying {} to {}".format(self.source, self.destination))
|
||||||
if libcalamares.job.configuration["bogus"]:
|
if libcalamares.job.configuration.get("bogus", False):
|
||||||
return
|
return
|
||||||
|
|
||||||
srcsize, srcblksize = get_device_size(self.source)
|
srcsize, srcblksize = get_device_size(self.source)
|
||||||
|
Loading…
Reference in New Issue
Block a user