000kernel-change hook does not block suspend_hybrid hybernations

Asked by Jeff

Since suspend_hybrid is (or leads to) hibernation, maybe this hook should look out for it:

> cat /usr/lib/pm-utils/sleep.d/000kernel-change
#!/bin/sh

# Check for and abort a hibernate if the kernel indicates it has been
# updated, as we will be completly unable to resume.
if [ "$1" = "hibernate" ] && [ -f "/var/run/do-not-hibernate" ]; then
 echo "kernel update inhibits hibernate (/var/run/do-not-hibernate present)"
 exit 1
fi

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu pm-utils Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug

Can you help with this problem?

Provide an answer of your own, or ask Jeff for more information if necessary.

To post a message you must log in.