View previous topic :: View next topic |
Author |
Message |
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Mon Apr 30, 2007 11:33 pm Post subject: good night scripts |
|
|
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 |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Tue May 01, 2007 3:32 am Post subject: |
|
|
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 |
|
|
phajdan.jr Retired Dev
Joined: 23 Mar 2006 Posts: 1777 Location: Poland
|
Posted: Tue May 01, 2007 9:05 am Post subject: |
|
|
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 |
|
|
Zepp Veteran
Joined: 15 Mar 2004 Posts: 1246 Location: Ontario, Canada
|
Posted: Tue May 01, 2007 11:47 am Post subject: |
|
|
What is that emwrap.sh script? |
|
Back to top |
|
|
Insanity5902 Veteran
Joined: 23 Jan 2004 Posts: 1228 Location: Fort Worth, Texas
|
Posted: Tue May 01, 2007 1:48 pm Post subject: |
|
|
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 |
|
|
|