mocaccinoOS / mocaccino

:musical_score: where magic happens
69 stars 7 forks source link

mos kernel-switcher is broken #109

Open joostruis opened 1 year ago

joostruis commented 1 year ago

Default MOS ships with the LTS kernel. However, we also feature the stable kernel in our desktop repository. To switch to the other kernel there is a tool developed to help the user. It should select all required packages and modules and install the other kernel. However. As we can see below it actually fails to grab the proper initramfs package. If we go ahead and reboot the system will fail. Only way to repair that would be to chroot into it from a live USB/disk and install the proper initramfs package and regenerate dracut.

ps4 /home/joost # mos kernel-switcher list
kernel/mocaccino-full (5.19.14) 
kernel/mocaccino-lts-full (5.15.72) installed
ps4 /home/joost # mos kernel-switcher switch kernel/mocaccino-full
Switching to kernel kernel/mocaccino-full
 INFO   ⚡  Proposed version changes to the system:                                                                                                                                                           

Old version                            | New version                      | License
kernel/mocaccino-lts-modules-5.15.72   |                                 
kernel/mocaccino-lts-full-5.15.72      |                                 
kernel/mocaccino-lts-initramfs-5.15.72 |                                 
                                       | kernel/mocaccino-full-5.19.14    |        
                                       | kernel/mocaccino-modules-5.19.14 |    
joostruis commented 1 year ago

This is hosted here: https://github.com/mocaccinoOS/mos-cli/tree/master/cmd/kernelswitcher