[Feature Request] Notify user if system is in a broken state and should not be restarted after an update
Pamac --version
Pamac 10.4.1-1 - libpamac 11.3.1-1
Variant in use
GUI
Distribution
Manjaro
Desktop environment
GNOME
TL;DR
After doing a large update of all my packages, pamac gtk suggested I restart my computer to apply the updates. After restarting I could not boot into Manjaro anymore. (In this specific case, it appears pamac had deleted my kernel images from /boot
, meaning Grub had no entries for me to boot into my system.)
It would be amazing if instead of prompting the user to restart their machine, some preliminary checks were done to ensure that the system will actually be bootable before the user does so. This script can be dead simple at first, I'm sure volunteers from the open source community will expand upon it and make it great later on
Full Story
I was gone for 2 weeks on vacation. Upon returning home, I clicked the update button in pamac to update all the packages on my system. The only warning I received during the update was about nvidia470 not being removed because I have some dependency that cannot be resolved otherwise. I thought nothing of it – either that stuff won't get updated and I can worry about it later, or I'll have to fix my drivers next time I boot. What I didn't know, is that after the update process completed, I was left without any linux images in `/boot`. I had to get a live recovery USB, mount my system drive, chroot into it, manually install the latest linux kernel (`mhwd-kernel` would refuse to update my kernel, but that's a bug for another day/project. See attached photo if interested.), run `update-grub`, and then install `video-nvidia`, because without it I had a grub entry but still could not boot into a usable system.This all could have been avoided if pamac had done the simple check of "does the system still have a kernel installed?" before asking me to reboot my system