The officially official Devuan Forum!

You are not logged in.

#1 2023-05-02 20:48:37

Devarch
Member
Registered: 2022-10-03
Posts: 61  

EFI: How to install two OS with the same name?

I had efi installation of chimaera

$ efibootmgr
Boot0002* debian

This installation has been made from Debian netinstall -> Devuan. I know, that if I'll try to install the second Debian alongside the first one than only one of them will be bootable. Is it possible to solve the issue? Or, how to rename this boot records?

Last edited by Devarch (2023-05-02 20:52:13)

Offline

#2 2023-05-02 21:52:48

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,313  

Re: EFI: How to install two OS with the same name?

One way to do it would be to install the second system without installing a bootloader and then run 'update-grub' in the first system. The new installation will be added (if os-prober is installed and enabled in /etc/default/grub).

If you want the second system to be the one in charge of booting, you can give it a different name. Boot into second system and run

grub-install --bootloader-id=somecoolname
update-grub

and then the boot files will be in /boot/efi/EFI/somecoolname

Edit: If your computer's uefi works like mine, the new one will be set to boot first.
And, if your computer's uefi works the way it's supposed to work, you'll also be able to change the boot order with efibootmgr.

Offline

#3 2023-05-02 22:57:30

Devarch
Member
Registered: 2022-10-03
Posts: 61  

Re: EFI: How to install two OS with the same name?

Tanks fsmitherd. I'll give it a try. Should it work with luks encrypted and refind?

Last edited by Devarch (2023-05-02 23:19:47)

Offline

#4 2023-05-03 13:25:13

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,313  

Re: EFI: How to install two OS with the same name?

If you have an installation with an encrypted root partition, then os-prober will not find it. Either you have to let the encrypted system be the one in charge of boot, or you have to create a boot menu entry in /etc/grub.d/40_custom for the encrypted system. Run update-grub to generate the new menu.

I don't remember what refind does with encrypted systems. And it might depend on whether /boot is encrypted or not.

Offline

Board footer