diff options
-rw-r--r-- | meta/classes/grub-efi.bbclass | 9 | ||||
-rw-r--r-- | meta/classes/image.bbclass | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass index 331581d78d..3d8ff11ee8 100644 --- a/meta/classes/grub-efi.bbclass +++ b/meta/classes/grub-efi.bbclass | |||
@@ -19,7 +19,8 @@ do_bootimg[depends] += "${MLPREFIX}grub-efi:do_deploy" | |||
19 | do_bootdirectdisk[depends] += "${MLPREFIX}grub-efi:do_deploy" | 19 | do_bootdirectdisk[depends] += "${MLPREFIX}grub-efi:do_deploy" |
20 | 20 | ||
21 | GRUB_SERIAL ?= "console=ttyS0,115200" | 21 | GRUB_SERIAL ?= "console=ttyS0,115200" |
22 | GRUBCFG = "${S}/grub.cfg" | 22 | GRUB_CFG_VM = "${S}/grub_vm.cfg" |
23 | GRUB_CFG_LIVE = "${S}/grub_live.cfg" | ||
23 | GRUB_TIMEOUT ?= "10" | 24 | GRUB_TIMEOUT ?= "10" |
24 | #FIXME: build this from the machine config | 25 | #FIXME: build this from the machine config |
25 | GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" | 26 | GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" |
@@ -43,7 +44,7 @@ efi_populate() { | |||
43 | fi | 44 | fi |
44 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR} | 45 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR} |
45 | 46 | ||
46 | install -m 0644 ${GRUBCFG} ${DEST}${EFIDIR}/grub.cfg | 47 | install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg |
47 | } | 48 | } |
48 | 49 | ||
49 | efi_iso_populate() { | 50 | efi_iso_populate() { |
@@ -83,9 +84,9 @@ python build_efi_cfg() { | |||
83 | bb.debug(1, "No labels, nothing to do") | 84 | bb.debug(1, "No labels, nothing to do") |
84 | return | 85 | return |
85 | 86 | ||
86 | cfile = d.getVar('GRUBCFG', True) | 87 | cfile = d.getVar('GRUB_CFG', True) |
87 | if not cfile: | 88 | if not cfile: |
88 | raise bb.build.FuncFailed('Unable to read GRUBCFG') | 89 | raise bb.build.FuncFailed('Unable to read GRUB_CFG') |
89 | 90 | ||
90 | try: | 91 | try: |
91 | cfgfile = file(cfile, 'w') | 92 | cfgfile = file(cfile, 'w') |
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 560cc6d894..0249f77bcf 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -543,7 +543,7 @@ addtask bundle_initramfs after do_image_complete | |||
543 | # Some of the vars for vm and live image are conflicted, this function | 543 | # Some of the vars for vm and live image are conflicted, this function |
544 | # is used for fixing the problem. | 544 | # is used for fixing the problem. |
545 | def set_live_vm_vars(d, suffix): | 545 | def set_live_vm_vars(d, suffix): |
546 | vars = ['SYSLINUX_CFG', 'ROOT', 'LABELS', 'INITRD'] | 546 | vars = ['GRUB_CFG', 'SYSLINUX_CFG', 'ROOT', 'LABELS', 'INITRD'] |
547 | for var in vars: | 547 | for var in vars: |
548 | var_with_suffix = var + '_' + suffix | 548 | var_with_suffix = var + '_' + suffix |
549 | if d.getVar(var, True): | 549 | if d.getVar(var, True): |