I wanted to see if it is possible to install CachyOS alongside another Linux which was installed with systemd-boot and luks/btrfs.
Here my test in a VM
installed EndeavourOS with systemd-boot and btrfs
renamed btrfs subvolumes in EndeavourOS aso and rebooted. All ok
booted from CachyOS installation iso
Ran: cryptsetup open /dev/vda2 live-root (I was told that only a name starting with live- prevents Calamares to fail installing which was true )
Started the installer and did ‘Manual Partitioning’, i.e mounted /dev/vda1 with keep and mountpoint /boot. Then chose the btrfs volume with mount point /.
Then installed
Result: All went fine with the exception that the two non-cachyos (i.e. EndeavourOS) conf files in /boot/loader/entries were deleted
Yeah, likely. sdboot-manager isn’t smart enough to be aware of entries from other distros so it just marks them as obsolete and remove them. If you set that to no, and run sudo sdboot-manage gen, does it not delete EndeavourOS entries?
Ah, so it’s using kernel-install from systemd presumably. Please try what I suggested above. If it doesn’t work then I’ll need to ask around other people in the team because it’s two different implementations
Not really, let’s say you install a few other kernels in CachyOS and one day decide to remove them. There will be orphan entries in /boot/loader/entries. They’re not gonna show up in the boot menu nor will it break anything, but orphans are bad
Up to you really, I personally find it broken functionality. If you’re okay with that, then you can use it this way.
edit: can you send me the file tree of /boot/loader/entries?
The question I have here is, why does EndeavourOS allow this? Couldn’t the same system that EndeavourOS uses be copied to CachyOS, considering that both are Arch Linux-based distros and both use systemd-boot for booting?
Did you not read the thread? Essentially, we’re using different tools to manage boot entries. What we’re using is “dumber” and isn’t aware of entries made by other distributions sharing the same EFI partition, so it just deletes them when the pacman hook is triggered.
Sorry, I certainly didn’t read the whole thread, just the final conclusions.
Anyway, I hope that in the future CachyOS can make the jump to the same tool that EndeavourOS uses. In the meantime, I’ll still have to do what I do now: install EndeavourOS after installing CachyOS, this way the boot menu is respected and I can log into both systems. But obviously, installing two CachyOS distributions on the same computer will have to wait…