summaryrefslogtreecommitdiffstats
path: root/instdata.py
diff options
context:
space:
mode:
Diffstat (limited to 'instdata.py')
-rw-r--r--instdata.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/instdata.py b/instdata.py
index a9568acf8..822e4f07e 100644
--- a/instdata.py
+++ b/instdata.py
@@ -207,7 +207,8 @@ class InstallData:
self.timezone.writeKS(f)
self.bootloader.writeKS(f)
self.partitions.writeKS(f)
- self.backend.writePackagesKS(f)
+ if self.backend is not None:
+ self.backend.writePackagesKS(f)
f.write("\n%post\n")
self.accounts.writeKScommands(f, useMD5)
@@ -218,9 +219,7 @@ class InstallData:
def __init__(self, extraModules, floppyDevice, methodstr, backend = None):
self.instLanguage = language.Language()
self.keyboard = keyboard.Keyboard()
-
- if backend is not None:
- self.backend = backend
+ self.backend = backend
self.mouse = None
self.monitor = None