View previous topic :: View next topic |
Author |
Message |
startail n00b


Joined: 25 Sep 2005 Posts: 71
|
Posted: Sat Nov 12, 2005 12:54 pm Post subject: Suspend2 + LVM2 + Initramfs |
|
|
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 |
|
 |
widan Veteran


Joined: 07 Jun 2005 Posts: 1512 Location: Paris, France
|
Posted: Sat Nov 12, 2005 4:26 pm Post subject: |
|
|
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 |
|
 |
startail n00b


Joined: 25 Sep 2005 Posts: 71
|
Posted: Sat Nov 12, 2005 5:18 pm Post subject: |
|
|
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 |
|
 |
|