If there are only hidden or protected disks, nothing should be done in the doKickstartStorage function.
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- pyanaconda/kickstart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py index 7ebcf04..df143fb 100644 --- a/pyanaconda/kickstart.py +++ b/pyanaconda/kickstart.py @@ -1636,7 +1636,8 @@ def runTracebackScripts(scripts): def doKickstartStorage(storage, ksdata, instClass): """ Setup storage state from the kickstart data """ ksdata.clearpart.execute(storage, ksdata, instClass) - if not [d for d in storage.disks if not d.format.hidden]: + if not any(d for d in storage.disks + if not d.format.hidden and not d.protected): return ksdata.bootloader.execute(storage, ksdata, instClass) ksdata.autopart.execute(storage, ksdata, instClass)