FS#17462 - [pm-utils] Kernel upgrades without reboot break resume from hibernation

Attached to Project: Arch Linux
Opened by Jaroslav Stepanek (jarda-wien) - Friday, 11 December 2009, 09:50 GMT
Last edited by Allan McRae (Allan) - Saturday, 12 December 2009, 12:41 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Thayer Williams (thayer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
This is a bug, that upstream said is up to every distribution to fix.
http://bugs.freedesktop.org/show_bug.cgi?id=21492

After a kernel upgrade, the running kernel differs from the kernel that will be booted next time. The image that pm-hibernate produces from the old running kernel on the swap partition doesn't work with the new one. Because of this a normal boot is done and all unsaved data from the old session is lost and filesystems need fsck.

Proposed fix: do not allow hibernation after a kernel upgrade, or even better, provide a way to safely hibernate (not sure whether producing the image for the new kernel is even possible, but we could modify grub to boot the old kernel that would be present as a backup - just a raw idea, maybe someone comes with a better one)

Steps to reproduce:
Upgrade kernel a make a hibernation cycle.
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 12 December 2009, 12:41 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Arch does not patch to add features upstream will not support
Comment by Allan McRae (Allan) - Friday, 11 December 2009, 12:47 GMT
  • Field changed: Severity (Critical → Medium)
This should not be considered critical...

I think this is hand holding. Arch users should know that they need to reboot after a kernel upgrade.
Comment by Jaroslav Stepanek (jarda-wien) - Friday, 11 December 2009, 13:32 GMT
I agree that they should. But what if you're in the middle of something and forget to... I know why do upgrade when you are in the middle of something? I still think that there should be a mechanism to prevent from hibernating. Something like a kernel26 upgrade make a touch /tmp/newkernel and the pm-hibernate script cecks if this file is present and if it is, it just prints a you need to reboot message. Now I could implement this on my own machine, but it would just be a sort of a workaround. I was sort of hoping that someone would come with a better idea. Perhaps I should mention this in the forums?

Loading...