bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.14k stars 55 forks source link

[BUG] EndeavorOS now uses kernel-install-for-dracut instead of dracut-rebuild to generate initramfs + kernel #170

Open haensche opened 1 month ago

haensche commented 1 month ago

The rebuilding of the initramfs is done via reinstall-kernels on EndeavorOS; at least on my configuration. Dracut-rebuild just throws an error pointing to reinstall-kernels.

Proposed change:

    elif os.path.exists('/usr/lib/endeavouros-release') and os.path.exists('/usr/bin/dracut'):
        command = ['reinstall-kernels']
killajoe commented 1 week ago

This is only in case you are using systemd-boot EndeavourOS is using reinstall-kernels

Grub installs still using dracut-rebuild

killajoe commented 1 week ago

https://github.com/bayasdev/envycontrol/pull/91

dalto8 commented 1 week ago

dracut-rebuild works with either kernel-install-for-dracut or eos-dracut.

What error are you getting?