You are not logged in.

#1 2020-09-20 20:11:08

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Making updating the kernel not break parts of the system until reboot

I've noticed that pretty much all issues after updating the kernel come from the old kernel modules folder being deleted by pacman. I was wondering if there is an easy way to make pacman not delete the old kernel modules folder (I'm not the most experienced with pacman hooks and such), and maybe have another hook which deletes the folder on the next shutdown or next boot (systemd, mkinitcpio, etc which I am experienced with, so I can put together). Unless there is something I'm missing here, this would solve a lot of issues and could come packaged with official arch installs.

What are your thoughts?

Offline

#2 2020-09-20 20:24:47

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Making updating the kernel not break parts of the system until reboot

Offline

#3 2020-09-20 21:54:51

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: Making updating the kernel not break parts of the system until reboot

I seeee. Yeah, that bug's description sounds a lot like how Ubuntu boys do it. I'm looking at a subset of that problem. Since Arch is a rolling release, it's probably for the better to do things the way they are being done right now.

I'm concerned more about the removed modules folder and how it impacts the system until the next reboot. Currently, I manually make a copy of the folder before updating the kernel if I don't want to reboot. A clean way to automate that process, or better yet prevent pacman from removing that folder, would be a lot less work than agreeing on a protocol like the one in the bug. I think an mkinitcpio hook would be the most effective way of cleaning up old modules folders, in case the systemd shutdown hook solution doesn't fire due to an unclean poweroff.

Offline

#4 2020-09-20 22:59:51

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Making updating the kernel not break parts of the system until reboot

Offline

#5 2020-09-21 07:20:00

a821
Member
Registered: 2012-10-31
Posts: 381

Re: Making updating the kernel not break parts of the system until reboot

Offline

#6 2020-09-21 08:10:15

solskog
Member
Registered: 2020-09-05
Posts: 415

Re: Making updating the kernel not break parts of the system until reboot

a few workaround maybe:
1, upgrade system prior shutting down.
2, consider using btrfs for system partition in host.
3, snapshot for VM.

Last edited by solskog (2020-09-21 08:10:52)

Offline

#7 2020-09-21 09:03:15

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: Making updating the kernel not break parts of the system until reboot

Yes sir! That's exactly what I'm talking about, thanks a lot smile

Offline

Board footer

Powered by FluxBB