Removing the trash from grub.cfg

I really can’t believe how much trash there is in the grub.cfg these days.
I just reduced it from 332 lines down to 11…

Why is there so much extra filler in there when there does not need to be?

Can you be more specific concernimg which lines you removed?

I kept the booting sequence.
So it’s faster to tell you what I had left…
The following is my grub.cfg

menuentry 'Operating System' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	echo	'Loading Xen 4.14.6 ...'
	multiboot2	/xen-4.14.6.gz placeholder console=none dom0_mem=min:1024M dom0_mem=max:2048M ucode=scan smt=off gnttab_max_frames=512 gnttab_max_maptrack_frames=512
	echo	'Loading Linux 6.1.62-1.qubes.fc32.x86_64 ...'
	module2	/vmlinuz-6.1.62-1.qubes.fc32.x86_64 placeholder root=UUID={PARTITIONUUIDHERE} ro plymouth.ignore-serial-consoles i915.alpha_support=1 rd.driver.pre=btrfs 
	echo	'Loading initial ramdisk ...'
	module2	--nounzip   /initramfs-6.1.62-1.qubes.fc32.x86_64.img

I have actually removed the echos though in my config.

1 Like