Adding blank lines in GRUB2 menus [SOLVED]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
houndstooth
Posts: 226
Joined: Sun Jul 17, 2022 9:41 am
Location: U.S.A.
Has thanked: 12 times
Been thanked: 17 times

Adding blank lines in GRUB2 menus [SOLVED]

Post by houndstooth »

In GRUB4DOS you can add a blank line to your boot menu with this entry:

Code: Select all

title
root

Alas, this does not work in GRUB2. Anyone know the equivalent?

Last edited by houndstooth on Wed Mar 01, 2023 10:08 am, edited 1 time in total.
Geek3579
Posts: 266
Joined: Sat Jul 18, 2020 1:07 pm
Has thanked: 79 times
Been thanked: 66 times

Re: Adding blank lines in GRUB2 menus

Post by Geek3579 »

I just put in blank lines in GRUB2 without any problems...
But for readability I usually keep lines of code for one frugal OS together with comment lines as required to remind me of specific changes.

# 03 DPUP_Buster64

menuentry " DPUP_Buster64_Mate" {
search --no-floppy --fs-uuid --set 1c48a2d8-bdbb-4cf5-a620-e43c95e51a05
# Comment line as required
linux /DPUP_Buster64_Mate/vmlinuz pmedia=usbflash psubdir=/DPUP_Buster64_Mate nousbwait=5
initrd /DPUP_Buster64_Mate/initrd.gz

}

User avatar
houndstooth
Posts: 226
Joined: Sun Jul 17, 2022 9:41 am
Location: U.S.A.
Has thanked: 12 times
Been thanked: 17 times

Re: Adding blank lines in GRUB2 menus

Post by houndstooth »

Geek3579 wrote: Tue Feb 28, 2023 6:11 am

I just put in blank lines in GRUB2 without any problems...

Ok

User avatar
mikewalsh
Moderator
Posts: 6034
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 738 times
Been thanked: 1899 times

Re: Adding blank lines in GRUB2 menus

Post by mikewalsh »

@houndstooth :-

I take my hat off to you, young sir. Thank you!

I've been trying to figure out if there was a way to do this for simply AGES. I've long wanted a way to "organise" my boot menu a bit better, so I could more clearly separate out 64-bit Pups from 32-bit ones. Never occurred to me to simply put a 'blank' root entry; I've been researching this on and off for years, but I've never found any reference to how it could be accomplished.

In my case, I've used 'lines' instead of just blanks. And so, thus:-

Image

That 'middle' entry is 32-bit Xenialpup.....but it's set-up with peebee's 64-bit compat libs SFS, so it's a kind of 'Frankenpup', midway betwixt the two. Posting this from it now, using 64-bit Brave browser.....

Thanks again. :thumbup: :D

Mike. ;)

User avatar
Fossil
Posts: 70
Joined: Sun Feb 12, 2023 11:33 am
Location: Beyond 'Reasonable Doubt'
Has thanked: 13 times
Been thanked: 31 times

Re: Adding blank lines in GRUB2 menus

Post by Fossil »

@houndstooth. Thanks! Such an easy workaround but necessary - this machine has seventy-two (72) different forms of Puppy Linux on the hard drive; ranging from the present forms back to Starlight and several 431's. The menu is 'slightly' overstretched. :lol:
Don't ask me why: it was a project that went a bit OTT! :geek: :roll:

oldaolgeezer
Posts: 46
Joined: Mon Aug 10, 2020 1:28 pm
Has thanked: 59 times
Been thanked: 23 times

Re: Adding blank lines in GRUB2 menus

Post by oldaolgeezer »

Adding blank lines in GRUB2 menus

I only have one UEFI GRUB2 PC, but I found I could insert
blank spacing lines in my grub.cfg file on my
bootable USB drive with this entry:

menuentry ' '{
true
}

On this one UEFI GRUB2 PC, I keep all my Puppy iso files on my C:\ hard drive
and my small bootable USB drive has only four files
(one of which is my grub.cfg file) and and the USB drive has boot flag:

my grub.cfg file (with the blank spacing lines) can be seen on the old forum
here: (scroll down)

This is from: https://oldforum.puppylinux.com/viewtopic.php?t=112224

(In 2017 I had only about six folders with Puppy Linux iso files on my
C:\ hard drive. Now I have eleven folders with Puppy Linux iso files on my
C:\ hard drive.)

Geek3579
Posts: 266
Joined: Sat Jul 18, 2020 1:07 pm
Has thanked: 79 times
Been thanked: 66 times

Re: Adding blank lines in GRUB2 menus

Post by Geek3579 »

oldaolgeezer wrote: Tue Feb 28, 2023 10:42 pm

Adding blank lines in GRUB2 menus

I only have one UEFI GRUB2 PC, but I found I could insert
blank spacing lines in my grub.cfg file on my
bootable USB drive with this entry:

menuentry ' '{
true
}

On this one UEFI GRUB2 PC, I keep all my Puppy iso files on my C:\ hard drive
and my small bootable USB drive has only four files
(one of which is my grub.cfg file) and and the USB drive has boot flag:

my grub.cfg file (with the blank spacing lines) can be seen on the old forum
here: (scroll down)

This is from: https://oldforum.puppylinux.com/viewtopic.php?t=112224

(In 2017 I had only about six folders with Puppy Linux iso files on my
C:\ hard drive. Now I have eleven folders with Puppy Linux iso files on my
C:\ hard drive.)

Sorry, I thought the question was about blank lines in the GRUB SCRIPT, not the GRUB MENU !!! Seniors moment ...again !!

The solution:

menuentry ' '{
true
}

is very elegant. Thanks. Now I will use it !!

Post Reply

Return to “Users”