Your message dated Thu, 21 Dec 2023 17:56:09 +0000
with message-id <[email protected]>
and subject line Bug#1058701: Removed package(s) from unstable
has caused the Debian Bug report #597199,
regarding pm-utils: uncoditionally prevent hibernation after any kernel upgrade
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
597199: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597199
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pm-utils
Version: 1.3.0-2
Severity: normal
Tags: patch
Hi there!
Today I upgraded my system and it happened that the kernel was upgraded
as well, from /var/log/dpkg.log:
2010-09-16 09:28:54 upgrade linux-image-2.6.32-5-amd64 2.6.32-21 2.6.32-22
And now pm-hibernate does not want to suspend anymore, because from
/var/log/pm-suspend.log (implemented to solve #457515):
Thu Sep 16 18:17:29 CEST 2010: Running hooks for hibernate.
/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:kernel \
update inhibits hibernate (/var/run/do-not-hibernate present)
Returned exit code 1.
However, I am running another kernel (2.6.34-1-amd64), thus pm-hibernate
should work anyway. Indeed, removing /var/run/do-not-hibernate and
hibernating did not cause any issue (FYI, I am now at the third
hibernation/thawing cycle after the issue above).
The following patch should solve this issue, tested locally while both
upgrading the running kernel and a not-running one:
--8<---------------cut here---------------start------------->8---
--- a/kernel/postinst.d/pm-utils
+++ b/kernel/postinst.d/pm-utils
@@ -2,4 +2,11 @@
# Let programs know not to hibernate if the kernel that would be used for
# resume-from-hibernate is likely to differ from the currently running kernel.
-touch /var/run/do-not-hibernate
+
+# this fix bug #NNNNNN
+KERNEL_RUNNING=`uname -r`
+KERNEL_UPGRADING="$1"
+
+if [ "$KERNEL_RUNNING" = "$KERNEL_UPGRADING" ]; then
+ touch /var/run/do-not-hibernate
+fi
--8<---------------cut here---------------end--------------->8---
Thx, bye,
Gismo / Luca
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pm-utils depends on:
ii kbd 1.15.2-1 Linux console font and keytable ut
ii powermgmt-base 1.31 Common utils and configs for power
Versions of packages pm-utils recommends:
ii procps 1:3.2.8-9 /proc file system utilities
pn radeontool <none> (no description available)
pn vbetool <none> (no description available)
Versions of packages pm-utils suggests:
ii cpufrequtils 007-1 utilities to deal with the cpufreq
pn uswsusp <none> (no description available)
-- no debconf information
pgper1xRCertX.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Version: 1.4.1-19+rm
Dear submitter,
as the package pm-utils has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/1058701
The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.
Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)
--- End Message ---