View previous topic :: View next topic |
Author |
Message |
oRDeX Veteran
Joined: 19 Oct 2003 Posts: 1325 Location: Italy
|
Posted: Sun Nov 18, 2007 11:13 pm Post subject: Genkernel and tuxonice |
|
|
I encountered some problems while using genkernel with tuxonice-sources.
The problem was that genkernel prepare its initrd.scripts only for suspend2 (the old name of iceonunix).
By the way the solution is very simple:
Code: |
cd /usr/share/genkernel/generic/
cat initrd.scripts | sed s/suspend2/tuxonice/g >initrd.scripts2
mv initrd.scripts2 initrd.scripts
cat linuxrc | sed s/suspend2/tuxonice/g >linuxrc2
mv linuxrc2 linuxrc
|
and stop.
After this it is possible to use genkernel to produce a good initrd for tuxonice
I'm sorry for my poor english |
|
Back to top |
|
|
vatachino n00b
Joined: 14 Oct 2004 Posts: 29
|
Posted: Tue Dec 11, 2007 1:32 pm Post subject: |
|
|
Hey, thanks for the tip
By the way, you can use sed -i to edit the files in-place if you're feeling brave:
Code: |
cd /usr/share/genkernel/generic/
sed -i initrd.scripts s/suspend2/tuxonice/g
sed -i linuxrc s/suspend2/tuxonice/g
|
|
|
Back to top |
|
|
|