Note that each time a "TryMethod" is attempted, common.conf is sourced. This can be quickly checked by adding an "echo Hi" to the suspend/restore methods in one of the scriptlets in /usr/share/hibernate/scriptlets.d/ It repeats twice when running hibernate-ram. This is because ram.conf tries ususpend-ram.conf (which my system does not have) and then sysfs-ram.conf. Both of these include common.conf. A work around is to comment out the extraneous "TryMethod"s in my system. A correct solution would be to refactor the inclusion of common.conf (amongst all the different hibernate.conf ram.conf disk.conf) or to use some sort of C style include guard. Package maintainer, please fix or follow up with upstream on the neatest fix. Reproducible: Always Steps to Reproduce: 1. Add an echo to an scriptlet in the restore function 2. hibernate-ram Actual Results: The echo is printed multiple times -- 2 times for hibernate-ram. Expected Results: The echo should be printed out once.
TuxOnIce has its own bugzilla, please report this issue upstream.