Ho to Clean Grub menu

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Ho to Clean Grub menu

Post by bradnag »

Hi Folks,

I have Salix installed on a partition and it boots from a Ubuntu bootloader (Grub). I would like to clean up some Salix entries as there are there now 6 or more but when I update-grub (from Ubuntu) Salix populates with the same entries. I guess there are some files in Salix which I need to remove, but I don't know where they are.
To be clear: there is no LILO or GRUB or any other bootloader in Salix.
the /boot looks like:

Code: Select all

ls -l /boot
total 42220
lrwxrwxrwx  1 root root       38 Oct 18  2022 README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
lrwxrwxrwx  1 root root       27 May  6 10:07 System.map -> System.map-generic-5.15.161
-rw-r--r--  1 root root  5126698 Jun 16  2024 System.map-generic-5.15.161
-rw-r--r--  1 root root  6925103 Jun 16  2024 System.map-huge-5.15.161
-rw-r--r--  1 root root   148480 May  5 14:03 amd-ucode.img
-rw-r--r--  1 root root      137 Oct 18  2022 boot_message.txt
-rw-r--r--  1 root root      426 Aug  8  2022 coffee.dat
lrwxrwxrwx  1 root root       27 May  6 10:07 config -> config-generic-5.15.161.x64
-rw-r--r--  1 root root   239646 Jun 16  2024 config-generic-5.15.161.x64
-rw-r--r--  1 root root   239615 Jun 16  2024 config-huge-5.15.161.x64
-rwxr-xr-x  1 root root   215987 Nov 20  2017 elilo-ia32.efi
-rwxr-xr-x  1 root root   237749 Nov 20  2017 elilo-x86_64.efi
drwxr-xr-x 14 root root     4096 May  6 18:51 initrd-tree
-rw-r--r--  1 root root 10259517 May  6 18:51 initrd.gz
-rw-r--r--  1 root root      432 Aug  8  2022 inside.dat
-rw-r--r--  1 root root      424 Aug  8  2022 onlyblue.dat
-rw-r--r--  1 root root   307318 Aug  8  2022 salix.bmp
-rw-r--r--  1 root root      423 Aug  8  2022 tuxlogo.dat
lrwxrwxrwx  1 root root       24 May  6 10:07 vmlinuz -> vmlinuz-generic-5.15.161
lrwxrwxrwx  1 root root       24 May  6 10:07 vmlinuz-generic -> vmlinuz-generic-5.15.161
-rw-r--r--  1 root root  7834080 Jun 16  2024 vmlinuz-generic-5.15.161
lrwxrwxrwx  1 root root       21 Jun 29  2024 vmlinuz-huge -> vmlinuz-huge-5.15.161
-rw-r--r--  1 root root 11650336 Jun 16  2024 vmlinuz-huge-5.15.161
Thank you!
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Ho to Clean Grub menu

Post by djemos »

os-prober is in use (GRUB_DISABLE_OS_PROBER="false" in grub.cfg), it will search all available partitions.
For salix in /boot folder in salix partition there are
vmlinuz -> vmlinuz-generic-5.15.161
vmlinuz-generic -> vmlinuz-generic-5.15.161
vmlinuz-generic-5.15.161
vmlinuz-huge -> vmlinuz-huge-5.15.161
vmlinuz-huge-5.15.161
so five entries will be added for salix plus a menu line for advanced options for salix if GRUB_DISABLE_SUBMENU=false in grub.cfg.
After update-grub can edit /boot/grub/grub.cfg in ubuntu partition and remove the entries you don't want. You have to do this every time you update-grub.
another option is to install grub-customizer in ubuntu and use it to edit grub entries.
if you have only ubuntu and salix a third option is to edit grub.cfg and change GRUB_DISABLE_OS_PROBER to true (GRUB_DISABLE_OS_PROBER="true") and edit /etc/grub.d/40_custom and add there the entries you like for salix to boot. (copy them from /boot/grub/grub.cfg) then update-grub.
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Re: Ho to Clean Grub menu

Post by bradnag »

Thanks so much!
Post Reply