Standardize whitespace in GRUB menu entry stanzas

Use consistent formatting across all architectures: 4-space indent,
two spaces after "linux", one space after "initrd". Also fix an extra
blank line before "fi" in amd64's UEFI section caused by f-string
interpolation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
michael.hudson@canonical.com 2026-02-19 13:49:51 +13:00
parent a6466ab0a3
commit a2a166d93d
No known key found for this signature in database
GPG Key ID: 80E627A0AB757E23
6 changed files with 17 additions and 17 deletions

View File

@ -161,7 +161,7 @@ menuentry "{self.humanproject} with the HWE kernel" {{
result += f"""\ result += f"""\
grub_platform grub_platform
if [ "$grub_platform" = "efi" ]; then if [ "$grub_platform" = "efi" ]; then
{uefi_menu_entries} {uefi_menu_entries}\
fi fi
""" """

View File

@ -54,9 +54,9 @@ if [ $? = 0 ]; then
fi fi
menuentry "Try or Install {self.humanproject}" {{ menuentry "Try or Install {self.humanproject}" {{
\tset gfxpayload=keep set gfxpayload=keep
\tlinux\t/casper/vmlinuz $cmdline {kernel_params} console=tty0 linux /casper/vmlinuz $cmdline {kernel_params} console=tty0
\tinitrd\t/casper/initrd initrd /casper/initrd
}} }}
""" """

View File

@ -126,10 +126,10 @@ class UEFIBootConfigurator(GrubBootConfigurator):
"""Return UEFI firmware menu entries.""" """Return UEFI firmware menu entries."""
return """\ return """\
menuentry 'Boot from next volume' { menuentry 'Boot from next volume' {
\texit 1 exit 1
} }
menuentry 'UEFI Firmware Settings' { menuentry 'UEFI Firmware Settings' {
\tfwsetup fwsetup
} }
""" """