You are not logged in.

#1 2017-07-22 15:14:47

SmellyJamelly
Member
Registered: 2017-07-15
Posts: 2

Custom grub menuentry's in /etc/grub.d/40_custom not showing at boot

My /etc/grub.d/40_custom looks like this:

#!/bin/sh
exec tail -n +3 $0
menuentry "linux-mainline-compiled" {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod btrfs
        set root='hd0,1'
        search --no-floppy --fs-uuid --set=root 232b23a2-4540-4cd2-ac18-1ba98d056996
        echo    'Loading Linux linux ...'
        linux   /vmlinuz root=/dev/sda1 rw
        #echo   'Loading initial ramdisk ...'
        #initrd  /initramfs-linux.img
}
menuentry "System restart" {
        echo "System rebooting..."
        reboot
}
menuentry "System shutdown" {
        echo "System shutting down..."
        halt
}
menuentry "Firmware setup" {
        fwsetup
}

When I grub-mkconfig o /boot/grub/grub.cfg i get this but none of my extra enteries:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image(s) in /boot: initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found Windows 10 on /dev/sdb1
done

Last edited by SmellyJamelly (2017-07-22 15:15:14)

Offline

#2 2017-07-23 03:31:01

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: Custom grub menuentry's in /etc/grub.d/40_custom not showing at boot

make the file excutable

Offline

Board footer

Powered by FluxBB