CachyOS / CachyOS/distribution
[Bug]: UEFI Bootloader is removed/missing on disk reconnection
- Dominant language
- No language data
- Stars
- 27
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
### Kernel
6.19.10-1-cachyos-server-lto
### Desktop Environment / Window Manager
KDE Plasma
### CPU
13th Gen Intel(R) Core(TM) i7-13700K
### GPU / Driver
NVIDIA GeForce RTX 5060
### Description
Using cachyOS already for many months now as my primary portable distribution. The main issue I'm facing is that we I move the disk to a new PC desktop/laptop cachyOS is not displayed in UEFI boot menu.
I've to boot using ventoy USB disk, browse , find EFI partition of cacheOS, then select cache EFI and boot. After booting I've to run
```
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=cachyos
```
After it BIOS can detect it normally.
I've tested this on many PC manufacturer MSI/Lenovo/ASUS laptops and desktops.. So it's not a BIOS bug.
**It occurs ONLY with cachyOS and not with other Linux distros I've like openSUSE, Kali or mxLinux.**
**Even if the disk has multiple OSes on the same /boot/efi all are detected but cacheOS!**
### Steps to Reproduce
1. Install cachyOS with grub2 bootloader UEFI much like any other modern Linux distro on modern hardware. Then boot normally. You can find it in UEFI boot menu as expected
2. Turn off PC and disconnect the disk having cachyOS.
3. Turn-On the PC/laptop, boot any other system from another disk.
4. Turn off PC and reconnect disk having cachyOS
### Expected Behavior
Should find cachyOS in UEFI boot menu and be able to boot it normally.
### Actual Behavior
You can see all other systems out there including Windows or other Linux distros (openSuSe, kali ...) but cachyOS is not there!
I've to either manually add it through BIOS/UEFI if supported or use ventoy disk and simply browse for it then boot and reinstall as mentioned earlier
### Logs / Error Messages
https://paste.cachyos.org/p/6798a34.log But I insist it's not hardware specific.
### Additional Context
```
$ pacman -Q | grep grub
cachyos-grub-theme 1.0.0-1
grub 2:2.14-1.1
grub-btrfs 4.14-1
grub-hook 2.1-1
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the linked log and the reported GRUB package versions, then reproduce the disk disconnect/reconnect sequence on a UEFI system. Compare the installed EFI entries before and after reconnection and inspect the reported grub-install command. Done means CachyOS remains visible in the UEFI boot menu after the disk is reconnected without manually reinstalling GRUB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100