summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r--scripts/lib/wic/imager/direct.py2
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py4
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-pcbios.py11
3 files changed, 9 insertions, 8 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py
index 09ff5f828d..8d4daece0d 100644
--- a/scripts/lib/wic/imager/direct.py
+++ b/scripts/lib/wic/imager/direct.py
@@ -159,7 +159,7 @@ class DirectImageCreator(BaseImageCreator):
159 self.ks.partitions.append(part) 159 self.ks.partitions.append(part)
160 160
161 # partitions list from kickstart file 161 # partitions list from kickstart file
162 return kickstart.get_partitions(self.ks) 162 return self.ks.partitions
163 163
164 def get_disk_names(self): 164 def get_disk_names(self):
165 """ Returns a list of physical target disk names (e.g., 'sdb') which 165 """ Returns a list of physical target disk names (e.g., 'sdb') which
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index 8bfa3a96ce..22f981389e 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -46,7 +46,7 @@ class BootimgEFIPlugin(SourcePlugin):
46 """ 46 """
47 Create loader-specific (grub-efi) config 47 Create loader-specific (grub-efi) config
48 """ 48 """
49 configfile = kickstart.get_bootloader_file(creator.ks) 49 configfile = creator.ks.bootloader.configfile
50 custom_cfg = None 50 custom_cfg = None
51 if configfile: 51 if configfile:
52 custom_cfg = get_custom_config(configfile) 52 custom_cfg = get_custom_config(configfile)
@@ -104,7 +104,7 @@ class BootimgEFIPlugin(SourcePlugin):
104 cfg.write(loader_conf) 104 cfg.write(loader_conf)
105 cfg.close() 105 cfg.close()
106 106
107 configfile = kickstart.get_bootloader_file(creator.ks) 107 configfile = creator.ks.bootloader.configfile
108 custom_cfg = None 108 custom_cfg = None
109 if configfile: 109 if configfile:
110 custom_cfg = get_custom_config(configfile) 110 custom_cfg = get_custom_config(configfile)
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
index e84bddf15d..0b5478ee6c 100644
--- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
+++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
@@ -84,18 +84,19 @@ class BootimgPcbiosPlugin(SourcePlugin):
84 install_cmd = "install -d %s" % hdddir 84 install_cmd = "install -d %s" % hdddir
85 exec_cmd(install_cmd) 85 exec_cmd(install_cmd)
86 86
87 configfile = kickstart.get_bootloader_file(creator.ks) 87 bootloader = creator.ks.bootloader
88
88 custom_cfg = None 89 custom_cfg = None
89 if configfile: 90 if bootloader.configfile:
90 custom_cfg = get_custom_config(configfile) 91 custom_cfg = get_custom_config(bootloader.configfile)
91 if custom_cfg: 92 if custom_cfg:
92 # Use a custom configuration for grub 93 # Use a custom configuration for grub
93 syslinux_conf = custom_cfg 94 syslinux_conf = custom_cfg
94 msger.debug("Using custom configuration file " 95 msger.debug("Using custom configuration file "
95 "%s for syslinux.cfg" % configfile) 96 "%s for syslinux.cfg" % bootloader.configfile)
96 else: 97 else:
97 msger.error("configfile is specified but failed to " 98 msger.error("configfile is specified but failed to "
98 "get it from %s." % configfile) 99 "get it from %s." % bootloader.configfile)
99 100
100 if not custom_cfg: 101 if not custom_cfg:
101 # Create syslinux configuration using parameters from wks file 102 # Create syslinux configuration using parameters from wks file