Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend2 + LVM2 + Initramfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
startail
n00b
n00b


Joined: 25 Sep 2005
Posts: 71

PostPosted: Sat Nov 12, 2005 12:54 pm    Post subject: Suspend2 + LVM2 + Initramfs Reply with quote

Hi,

I'm trying to get Suspend2 to work with my machine.
I've patched the latest vanilla-source kernel with Suspend2 and got all that to work, but I have a slight problem.

Since I have to use a initramfs file because I have a LVM2 volume for all my partitions exept /boot

I've read some wiki posts and came to the conclution I have to add this line before the initramfs mounts the partitions.
"echo > /proc/suspend2/do_resume "

Something like this

But I've always used genkernel to make my initramfs files, ie with "genkernel --lvm2 --gensplash=emergence initrd"

My problem is now how I am suppsed to get that special line in the initramfs file before it mounts the partitions.

If anyone has been able to find anything about this I would be really happy for the help on the topic.

Thanks in advance
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Sat Nov 12, 2005 4:26 pm    Post subject: Reply with quote

You can modify the template file genkernel uses (in /usr/share/genkernel/generic/linuxrc), or you can copy it somewhere, edit it, and specify it to genkernel with "--linuxrc=/path/to/my/linuxrc". In any case, you will have to do it again if you update genkernel, as the default file may have changed.
Back to top
View user's profile Send private message
startail
n00b
n00b


Joined: 25 Sep 2005
Posts: 71

PostPosted: Sat Nov 12, 2005 5:18 pm    Post subject: Reply with quote

Thanks for the reply

I was going in that direction after posting and was actually editing the real file for it.
Thanks for informing me that I could use a copy of the file.

I still have a problem of knowing where in that file I need to put it tough.

I assume It would be something like this...

Line 307 ...
Code:

setup_keymap

# Suspend2 Should be here I think...
echo "initramfs: activating suspend2"
mkdir -p /proc/software_suspend
echo > /proc/software_suspend/do_resume

# Determine root device
good_msg 'Determining root device...'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum