diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-pcbios.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-pcbios.py | 11 |
1 files changed, 6 insertions, 5 deletions
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 |