Skip to content

Commit

Permalink
bootloader: Fix up ppc64 bootinfo again
Browse files Browse the repository at this point in the history
To make the code look pretty extra newline is inserted at the start of
bootinfo file. This appears to break boot on Power9 PowerVM LPARs.
  • Loading branch information
hramrach committed Sep 12, 2024
1 parent 08f6e1b commit 30e0557
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions kiwi/bootloader/config/grub2.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,13 +941,13 @@ def _setup_chrp_config(self, mbrid):
chrp_dir = os.path.normpath(os.sep.join([self.boot_dir, 'ppc']))
Path.create(chrp_dir)
chrp_bootinfo_file = os.sep.join([chrp_dir, 'bootinfo.txt'])
chrp_config = dedent('''
<chrp-boot>
<description>{os_name}</description>
<os-name>{os_name}</os-name>
<boot-script>boot &device;:1,\\boot\\grub2\\powerpc-ieee1275\\grub.elf</boot-script>
</chrp-boot>
''')
chrp_config = dedent(
'''<chrp-boot>
<description>{os_name}</description>
<os-name>{os_name}</os-name>
<boot-script>boot &device;:1,\\boot\\grub2\\powerpc-ieee1275\\grub.elf</boot-script>
</chrp-boot>
''')
with open(chrp_bootinfo_file, 'w') as chrp_bootinfo:
chrp_bootinfo.write(
chrp_config.format(os_name=self.get_menu_entry_install_title())
Expand Down
1 change: 0 additions & 1 deletion test/data/bootinfo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<chrp-boot>
<description>Bob</description>
<os-name>Bob</os-name>
Expand Down

0 comments on commit 30e0557

Please sign in to comment.