summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index 0eb86a079f..83a7e189ed 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -77,12 +77,13 @@ class BootimgEFIPlugin(SourcePlugin):
77 if not custom_cfg: 77 if not custom_cfg:
78 # Create grub configuration using parameters from wks file 78 # Create grub configuration using parameters from wks file
79 bootloader = creator.ks.bootloader 79 bootloader = creator.ks.bootloader
80 title = source_params.get('title')
80 81
81 grubefi_conf = "" 82 grubefi_conf = ""
82 grubefi_conf += "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1\n" 83 grubefi_conf += "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1\n"
83 grubefi_conf += "default=boot\n" 84 grubefi_conf += "default=boot\n"
84 grubefi_conf += "timeout=%s\n" % bootloader.timeout 85 grubefi_conf += "timeout=%s\n" % bootloader.timeout
85 grubefi_conf += "menuentry 'boot'{\n" 86 grubefi_conf += "menuentry '%s'{\n" % (title if title else "boot")
86 87
87 kernel = "/bzImage" 88 kernel = "/bzImage"
88 89
@@ -152,9 +153,10 @@ class BootimgEFIPlugin(SourcePlugin):
152 if not custom_cfg: 153 if not custom_cfg:
153 # Create systemd-boot configuration using parameters from wks file 154 # Create systemd-boot configuration using parameters from wks file
154 kernel = "/bzImage" 155 kernel = "/bzImage"
156 title = source_params.get('title')
155 157
156 boot_conf = "" 158 boot_conf = ""
157 boot_conf += "title boot\n" 159 boot_conf += "title %s\n" % (title if title else "boot")
158 boot_conf += "linux %s\n" % kernel 160 boot_conf += "linux %s\n" % kernel
159 boot_conf += "options LABEL=Boot root=%s %s\n" % \ 161 boot_conf += "options LABEL=Boot root=%s %s\n" % \
160 (creator.rootdev, bootloader.append) 162 (creator.rootdev, bootloader.append)