diff options
Diffstat (limited to 'meta/classes/systemd-boot.bbclass')
| -rw-r--r-- | meta/classes/systemd-boot.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass index 05244c7e50..60729a756c 100644 --- a/meta/classes/systemd-boot.bbclass +++ b/meta/classes/systemd-boot.bbclass | |||
| @@ -63,8 +63,8 @@ efi_hddimg_populate() { | |||
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | python build_efi_cfg() { | 65 | python build_efi_cfg() { |
| 66 | s = d.getVar("S", True) | 66 | s = d.getVar("S") |
| 67 | labels = d.getVar('LABELS', True) | 67 | labels = d.getVar('LABELS') |
| 68 | if not labels: | 68 | if not labels: |
| 69 | bb.debug(1, "LABELS not defined, nothing to do") | 69 | bb.debug(1, "LABELS not defined, nothing to do") |
| 70 | return | 70 | return |
| @@ -73,7 +73,7 @@ python build_efi_cfg() { | |||
| 73 | bb.debug(1, "No labels, nothing to do") | 73 | bb.debug(1, "No labels, nothing to do") |
| 74 | return | 74 | return |
| 75 | 75 | ||
| 76 | cfile = d.getVar('SYSTEMD_BOOT_CFG', True) | 76 | cfile = d.getVar('SYSTEMD_BOOT_CFG') |
| 77 | try: | 77 | try: |
| 78 | cfgfile = open(cfile, 'w') | 78 | cfgfile = open(cfile, 'w') |
| 79 | except OSError: | 79 | except OSError: |
| @@ -81,7 +81,7 @@ python build_efi_cfg() { | |||
| 81 | 81 | ||
| 82 | cfgfile.write('# Automatically created by OE\n') | 82 | cfgfile.write('# Automatically created by OE\n') |
| 83 | cfgfile.write('default %s\n' % (labels.split()[0])) | 83 | cfgfile.write('default %s\n' % (labels.split()[0])) |
| 84 | timeout = d.getVar('SYSTEMD_BOOT_TIMEOUT', True) | 84 | timeout = d.getVar('SYSTEMD_BOOT_TIMEOUT') |
| 85 | if timeout: | 85 | if timeout: |
| 86 | cfgfile.write('timeout %s\n' % timeout) | 86 | cfgfile.write('timeout %s\n' % timeout) |
| 87 | else: | 87 | else: |
| @@ -91,7 +91,7 @@ python build_efi_cfg() { | |||
| 91 | for label in labels.split(): | 91 | for label in labels.split(): |
| 92 | localdata = d.createCopy() | 92 | localdata = d.createCopy() |
| 93 | 93 | ||
| 94 | overrides = localdata.getVar('OVERRIDES', True) | 94 | overrides = localdata.getVar('OVERRIDES') |
| 95 | if not overrides: | 95 | if not overrides: |
| 96 | bb.fatal('OVERRIDES not defined') | 96 | bb.fatal('OVERRIDES not defined') |
| 97 | 97 | ||
| @@ -107,8 +107,8 @@ python build_efi_cfg() { | |||
| 107 | entrycfg.write('title %s\n' % label) | 107 | entrycfg.write('title %s\n' % label) |
| 108 | entrycfg.write('linux /vmlinuz\n') | 108 | entrycfg.write('linux /vmlinuz\n') |
| 109 | 109 | ||
| 110 | append = localdata.getVar('APPEND', True) | 110 | append = localdata.getVar('APPEND') |
| 111 | initrd = localdata.getVar('INITRD', True) | 111 | initrd = localdata.getVar('INITRD') |
| 112 | 112 | ||
| 113 | if initrd: | 113 | if initrd: |
| 114 | entrycfg.write('initrd /initrd\n') | 114 | entrycfg.write('initrd /initrd\n') |
