update-grub does not read /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
# ajout fl en dessous
# path to the partition holding ISO images (using UUID)
probe -u $root --set=rootuuid
set imgdevpath="/dev/disk/by-uuid/$rootuuid"
menuentry "Porteus5.0 XFCE x86-64 ISO" {
insmod part_msdos
insmod ext2
set root=(hd1,3)
set isofile="/isos/Porteus-XFCE-v5.0-x86_64.iso"
search --no-floppy --file --set=root $isofile
loopback loop $isofile
linux (loop)/boot/syslinux/vmlinuz from=$isofile changes=/50_porteus login=root extramod=/50_porteus/xfce
initrd (loop)/boot/syslinux/initrd.xz
}
menuentry "NEMESIS XFCE x86-64 iso" {
insmod part_msdos
insmod ext2
set root=(hd1,3)
set isofile="/isos/nemesis-xfce-version.iso"
search --no-floppy --file --set=root $isofile
loopback loop $isofile
linux (loop)/boot/syslinux/vmlinuz from=$isofile changes=/1_nemesis login=root extramod=/1_nemesis/modules/
initrd (loop)/boot/syslinux/initrd.xz
}
fl@GL502VMZ:~$ uname -a
Linux GL502VMZ 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 22 19:00:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
fl@GL502VMZ:~$
Desktop Environment
XFCE
Problem Description:
The menu entries for porteus and nemesis do not show at startup
What I’ve Tried:
I have tried to remove os-prober by changint its file name to .30_custom
Any suggestion would be appreciated.
Thanks.