Hi,

On Mon 10/Nov/2025 18:24:52 +0100 Ian Jackson wrote:
[...]

I think you have molly-guard installed?


Yes, I do. I don't know what pulled it in. I didn't even know it was a separate package. I have now purged it and reinstalled pm-utils.


pm-action is documented to iterate through /etc/pm/sleep.d.  Does your
system have something in that directory put there by molly-guard?


No.



The following change fixed it:

--- /old/pm-action      2025-11-10 17:55:09.078432257 +0100
+++ /usr/lib/pm-utils/bin/pm-action     2025-11-10 17:49:09.814631753 +0100
@@ -26,7 +26,7 @@

 # The rule here? Simplicity.
 export STASHNAME=pm-suspend
-export METHOD="$(echo ${0##*pm-} |tr - _)"
+export METHOD="$(echo ${0##*pm-} |tr - _|sed 's/\.no_molly_guard$//')"
 . "/usr/lib/pm-utils/pm-functions"

This encodes specific knowledge of molly-guard into pm-utils.  Would
it not be better if molly-guard somehow declared how to "suspend" it?


I agree the patch makes no sense, given that molly-guard is an separate package. pm-utils works fine as is. This is a molly-guard bug. Perhaps they could patch pm-action in postinst, if they cannot find a better way...


Best
Ale

Reply via email to