mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-03-04 22:58:46 +00:00
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:
parent
a6466ab0a3
commit
a2a166d93d
@ -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
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user