Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199640 - sys-power/suspend - s2disk un-friendly parsing of suspend.conf
Summary: sys-power/suspend - s2disk un-friendly parsing of suspend.conf
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 09:39 UTC by Doron Fediuck
Modified: 2007-11-19 09:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doron Fediuck 2007-11-19 09:39:02 UTC
Hi,
I'm trying to use s2ram and s2disk.
After s2ram success, I tried working with s2disk.
It failed with the following message:
hibernate: Running /usr/sbin/s2disk ...
s2disk: Could not stat the resume device file. Reason: No such file or directory

My suspend.conf had: resume device = /dev/sda2
which works as a normal swap.
With a friend's help, I used strace, and found the following line:
stat64("/dev/sda2 ", 0xbfaf6c3c)        = -1 ENOENT (No such file or directory)

It turned out that I had a space at the end of the line, which made
s2disk fail.

Steps to reproduce:
1. Add a space at the end of the resume device line in suspend.conf.
2. Hibernate.

Resolution:
Please perform a simple trim whie parsing the conf file.

Thanks !
Doron.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-19 09:44:31 UTC
This is a wrong place to report this, please send it to upstream ML instead. Thanks.

http://sourceforge.net/mailarchive/forum.php?forum_name=suspend-devel