Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel and tuxonice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Sun Nov 18, 2007 11:13 pm    Post subject: Genkernel and tuxonice Reply with quote

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 8)

I'm sorry for my poor english
Back to top
View user's profile Send private message
vatachino
n00b
n00b


Joined: 14 Oct 2004
Posts: 29

PostPosted: Tue Dec 11, 2007 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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