Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#6011 - [kernel26suspend2] use a /var/run/suspend2-new-kernel

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Thursday, 14 December 2006, 21:29 GMT
Last edited by Thomas Bächler (brain0) - Tuesday, 08 May 2007, 22:28 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

hi.
i just read the README of hibernate-script (<grumble> i had to download the source to read the doc since i coudn't even have some descent doc with arch package</grumble>)

'''Additionally, the hibernate script will look for a particular file before
suspending (/var/run/suspend2-new-kernel) and if it is detected, will refuse to
suspend. The idea is that your installation scripts for new kernels create
this file, which prevents you from hibernating until you have booted your new
kernel (or you remove the file manually if you know what you are doing). For
example, kernel packages compiled with the Debian kernel-patch-suspend2 patches
do this upon installation.'''

Why does the arch suspend2 kernel package not do that ???

It will avoid a suspend with hibernate script while a new suspend2 kernel has just been installed , a new one that will not allow to resume !

it is a matter of adding a if...fi in post_upgrade and post_install in install file

post_upgrade() {
if pacman -Q hibernate-script 2>/dev/null ;then
touch /var/run/suspend2-new-kernel
fi
}

the problem is now to remove that /var/run/suspend2-new-kernel on the next boot. but there must be a way to do that cleanly !


This task depends upon

Closed by  Thomas Bächler (brain0)
Tuesday, 08 May 2007, 22:28 GMT
Reason for closing:  Fixed
Comment by Thomas Bächler (brain0) - Sunday, 17 December 2006, 23:25 GMT
I didn't know about this one. Looks cool, I think I will do this when I work on hibernate next time.

Loading...