theasker Posted January 5, 2018 Report Share Posted January 5, 2018 Hello: I want boot various Linux distro with my grub. Now have 4 partitions: /dev/sda1 --> /boot /dev/sda2 --> swap /dev/sda3 --> / (funtoo) /dev/sda4 --> Calculate Linux (with /boot ) How do I have to configure /etc/grub.d/40_custom for boot all OS? I try this, but don't work it, do not see it in the boot menu: # /etc/grub.d/40_custom menuentry "Reiniciar" --class reboot { echo "Se esta reiniciando el sistema..." reboot } menuentry "Apagar" --class shutdown { echo "Se está apagando el sistema..." halt } Thanks in advance and sorry for my english.. Mauri from Spain Link to comment Share on other sites More sharing options...
0 cafaia Posted January 11, 2018 Report Share Posted January 11, 2018 Hello, theasker! Sorry for the delay! As you have more operating systems, I advise you not to use the program sys-boot/boot-update and do this: 1 - install sys-boot/grub (attention to the variable GRUB_PLATFORMS in /etc/portage/make.conf) and sys-boot/os-prober 2 - run 'grub-mkconfig -o /boot/grub/grub.cfg' 3 - run 'grub-install /dev/sda' This usually works automatically, without needing to edit anything. Hope this helps! Link to comment Share on other sites More sharing options...
0 AdiosKid Posted January 5, 2018 Report Share Posted January 5, 2018 no, you need configure the /etc/boot.conf add both boot entry point to each kernel and initramfs(if use) and use "boot-update" to generate Link to comment Share on other sites More sharing options...
0 cafaia Posted January 7, 2018 Report Share Posted January 7, 2018 Hello, theasker! If you do not use the program sys-boot/boot-update to update the file '/boot/grub/grub.cfg', you must have installed the program sys-boot/os-prober. Look at this: * sys-boot/os-prober Available versions: 1.71 (~)1.73 (~)1.74 Homepage: http://packages.debian.org/source/sid/os-prober Description: Utility to detect other OSs on a set of drives Hope this helps! Link to comment Share on other sites More sharing options...
0 theasker Posted January 8, 2018 Author Report Share Posted January 8, 2018 First, thanks for your response: Then, ... boot-update is the substitute for os-prober ?. Is there a configuration manual for boot-update? And is there a manual to manually modify the grub configuration if os-prober or boot-update does not detect the OS? Thx in advance Link to comment Share on other sites More sharing options...
0 dhudson Posted January 9, 2018 Report Share Posted January 9, 2018 20 hours ago, theasker said: Is there a configuration manual for boot-update? yes type "man boot-update" for boot.conf "man boot.conf" or you can look at it here, https://github.com/funtoo/boot-update/blob/master/doc/boot.conf.5.rst suggest you look at /boot directory and find out how kernels are named i.e bzImage or vzImage so you will know what to put in boot.conf. Link to comment Share on other sites More sharing options...
0 theasker Posted January 11, 2018 Author Report Share Posted January 11, 2018 it works perfectly. Thanks :) Link to comment Share on other sites More sharing options...
0 cafaia Posted January 11, 2018 Report Share Posted January 11, 2018 Hi, theasker! I'm glad that's working. Big hug and welcome to the community Funtoo! Link to comment Share on other sites More sharing options...
Question
theasker
Hello:
I want boot various Linux distro with my grub. Now have 4 partitions:
/dev/sda1 --> /boot
/dev/sda2 --> swap
/dev/sda3 --> / (funtoo)
/dev/sda4 --> Calculate Linux (with /boot )
How do I have to configure /etc/grub.d/40_custom for boot all OS? I try this, but don't work it, do not see it in the boot menu:
# /etc/grub.d/40_custom menuentry "Reiniciar" --class reboot { echo "Se esta reiniciando el sistema..." reboot } menuentry "Apagar" --class shutdown { echo "Se está apagando el sistema..." halt }
Thanks in advance and sorry for my english..
Mauri from Spain
Link to comment
Share on other sites
7 answers to this question
Recommended Posts