Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
good night scripts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kEiNsTeiN
Guru
Guru


Joined: 29 Apr 2005
Posts: 361
Location: Germany

PostPosted: Mon Apr 30, 2007 11:33 pm    Post subject: good night scripts Reply with quote

Hi!
I just wanted to share my good night scripts (stuff I execute when I go to bed) with you:

/root/update
Code:
emerge --sync
update-eix-remote update
layman -S
svn update /usr/local/overlays/vipernicus
update-eix
emerge -uDN world || /usr/local/bin/emwrap.sh -wuDbN
emerge -1 `for t in 9999 20101010; do find /var/db/pkg/*/ -name \*.ebuild | grep "${t}"; done | cut -d/ -f5-6 | while read l; do echo =$l; done`
prelink -afmRh
etc-update
emerge -uDNatv world


/root/kernelupdate
Code:
mount /boot
cd /usr/src/linux
make
make modules_install
make install
umount /boot
emerge nvidia-drivers ndiswrapper vmware-modules


they probably are really ugly, but do the job.
The upper one first tries to emerge -uDN world the normal way. If it fails, it starts that nice wrapper script, which will try it again probably failing, and then continue with the rest. Then all the svn ebuild will be remerged (beryl, amarok), prelinking, etc-update with prompt when I wake up, which I will complete, and then he'll list the packages which didnt make it (hopefully 0).

suggestions? especially the eix stuff gets done twice...
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Tue May 01, 2007 3:32 am    Post subject: Reply with quote

Note much to say but you might be be able to incorporate the following into your emerge worlds.

If and emerge fails, run emerge --skip-first --resume, and it will pick up with the same packages, skipping the first one.

Other then that, looks cool, I don't use half of that stuff, and tend to only update kernels on the weekend and I have to troubleshoot anything :)
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Tue May 01, 2007 9:05 am    Post subject: Reply with quote

I assume you remember to run revdep-rebuild afterwards? Okay.

You can simplify and make more robust module rebuilding using module-rebuild rebuild instead of hardcoded emerge arguments.

About the kernel: make install makes a copy in /boot in case the new kernel has some problems. But when ran twice, you can end up with broken kernel. Always have somewhere a sure-working kernel, and don't forget about the modules in /lib!
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Tue May 01, 2007 11:47 am    Post subject: Reply with quote

What is that emwrap.sh script?
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Tue May 01, 2007 1:48 pm    Post subject: Reply with quote

Zepp wrote:
What is that emwrap.sh script?


kEiNsTeiN wrote:
he upper one first tries to emerge -uDN world the normal way. If it fails, it starts that nice wrapper script, which will try it again probably failing, and then continue with the rest


What's in it would be a better question :)
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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