The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 1,092โ€…    Votes:  3โ€…    โœ… Solution
Tags: boot   grub2   themes  
Link: ๐Ÿ” See Original Answer on Ask Ubuntu ๐Ÿ”—

Title: Grub theme terminal-box appearing, why?
ID: /2018/12/16/Grub-theme-terminal-box-appearing_-why_
Created: December 16, 2018    Edited:  June 12, 2020
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

Itโ€™s perfectly normal for the black text box to appear empty. Sometimes it will show the โ€œLoadingโ€ kernel version though:

Grub boot.gif

The purpose of the box is to show terminal messages before the kernel boots and mounts itโ€™s own screen with scrolling list of kernel messages.

In this example the โ€œblack boxโ€ background image was created as cut-out image of the main screen to make it less distracting.

Putting Boot Text into box

When you boot your first kernel (last installed version) no text is displayed in the box. When you boot older kernels:

Although you can write a script to update /boot/grub/grub.cfg it is easiest to simply edit it:

    echo    'Loading Linux 4.15.0-42-generic ...'
        linux   /boot/vmlinuz-4.15.0-42-generic root=UUID=b40b3925-70ef-447f-923e-1b05467c00e7 ro  noplymouth fastboot acpiphp.disable=1 pcie_aspm=force scsi_mod.use_blk_mq=1 vt.handoff=7 i915.enable_guc_loading=1 i915.enable_guc_submission=1 i915.edp_vswing=2 nopti nospectre_v2 nospec
    echo    'Loading initial ramdisk ...'
    initrd  /boot/initrd.img-4.15.0-42-generic

Insert the two echo lines in front of the two existing lines.

Important: After you, or more often a system update, runs sudo update-grub the changes are lost and you will have to manually edit the file again.

โ‡ง How can I limit page cache/buffer size CPU frequency too high even with 'powersave' governor  โ‡ฉ