Comment 6 for bug 554009

Revision history for this message
Moreno Bartalucci (moreno-bartalucci) wrote :

Hello,

so I changed my '/usr/share/initramfs-tools/scripts/local-premount/resume' file as per attached patch and the resume from swap file seems to be working now.
I noticed, however, something strange in my 'new' dmesg (please find it here attached).
In a normal boot (no hibernation before), beside the 'usual' lines:
[ 0.708670] PM: Checking image partition UUID=f0e784ed-e140-4d73-87a3-8ef047012b9f
[ 0.714705] PM: Resume from disk failed.
now I have also:
[ 4.948849] PM: Starting manual resume from disk
[ 4.948852] PM: Resume from partition 8:3
[ 4.948853] PM: Checking hibernation image.
[ 4.967541] PM: Error -22 checking image file
[ 4.967544] PM: Resume from disk failed.
Which is normal: with my patch, the resume is always attempted.
But here comes my question: why is it attempted twice?
And the timing is also very different (0.7 vs. almost 5).
Who else is attempting to resume?
Am I looking in the wrong place?