Vault9 Modding Vault9 Graphics Vault9 Code Vault9 Net Vault9 OS Vault9 Gaming Vault9 ChillZone Vault9 Tech Vault9 Archives       Vault9 Global9       Vault9 Fusion     Vault9 Blog     Vault9 Network          
 

Please Note!

This is a read-only board, no new topics or registrations are allowed. The OS Vault has moved to http://forums.vault9.net - Be sure to find more information there!


 
Reply to this topicStart new topic
> Updating of scripts when emerging baselayout, /etc/init.d/*
post Jun 11 2005, 04:06 PM
Post #1


Dont fear the Penguins!
Group Icon

Group: Regular Member
Posts: 1,998
Joined: 3-November 03
From: South Africa, Johannesburg
Member No.: 2,166

Sex: Male



Something that is really annoying. Now I dont know if I am missing something or it is just plain annoying. When you emerge sync and emerge the latest apps for example with baselayout. I found that it does not update you scripts ie: net.eth* or /etc/conf.d/rc as it would do so if you were installing it afresh. Now this is bastardly annoying. It kind of defeats the purpose of doing a emerge sync and keeping your system up to date sad.gif

Am I doing something wrong or what?


--------------------
user posted image user posted image user posted image user posted image
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Jun 11 2005, 04:06 PM
Post #


Member


Group: Administration

Joined: Today, 10:39 AM





Quote PostGo to the top of the page
post Jun 11 2005, 04:19 PM
Post #2


Dont fear the Penguins!
Group Icon

Group: Regular Member
Posts: 1,998
Joined: 3-November 03
From: South Africa, Johannesburg
Member No.: 2,166

Sex: Male



It would seem I missed the lesson on etc-update and dispatch-conf. FFS! I really feel like fdisking gentoo off my pc. angry.gif crying.gif
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Jun 11 2005, 05:46 PM
Post #3


"ok I am root NOW what?"
Group Icon

Group: Regular Member
Posts: 620
Joined: 4-May 02
From: Kimberley
Member No.: 178

Sex: Male



Ravilj, you wanna tell me you have been running Gentoo for months now and never knew about etc-update???
And you never wondered why some things didn't work?
I cannot believe you missed this VITAL piece of portage...but anyway, if you run it now, just take carefull note of what is getting updated.

Two ways to do this, taking into account that there will be hundreds of files that need updating:
One:
etc-update > update.txt (wait a while may take a couple of seconds to complete)
Ctrl+C and run etc-update again.
What this will do is write the output of etc-update to a file update.txt in the present directory you are in, either cd to /root or you /home/username beforehand. Why you need to kill it and do it again is because the output is not displayed in terminal so you will see nothing. Second time around you will see all the files that need updating, and by the looks of it there will be allot of them!
(Anyone know of a better way to log the output?)

Two:
Open two terminals next to each other and if you update a critical file, like /etc/make.conf or /etc/rc.conf, or /etc/lilo.conf, you can then update it in the following manner;
In the spare terminal, cp /etc/make.conf /etc/make.conf.old
Do the etc-update on make.conf and go back and review the changes and edit it as needed from the old config file.

Why should you either record or do this interactively? Because you can seriously mess up your system if one of the more important config files gets updated and you can't remember which one got updated or how it changed. If you followed one you can review the list if you boot from a LiveCd and try and find the problem, if you did two you know nothing got updated without you interactively interceding, and you have the old config files to fall back on should you need it!

Luckily there are not many such files that are system crytical, but rather be safe!! No need to back up ALL those files that needs updating, some just fix minor things like spelling and optimization, but definately back up the system critical files. Usually if it is in /etc, /etc/init.d/, /etc/conf.d/.

Good luck, and tell us how it went!
biggrin.gif

This post has been edited by My_World: Jun 11 2005, 05:47 PM


--------------------
I'm a fool for God, who's fool are you?
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Jun 11 2005, 06:10 PM
Post #4


So da ne
Group Icon

Group: Administration
Posts: 540
Joined: 21-April 02
From: Centurion, Pretoria, SA
Member No.: 30

Sex: Male



Excellent follow-up post, My_World. I agree with you that updating and understanding how it works is a vital lesson in keeping your system healthy. As for logging the update process, though your method could be described by some as crude, it's very simple and effective at the same time and as such I can't think of a better method to do so at present.


--------------------
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Jun 12 2005, 01:46 AM
Post #5


Dont fear the Penguins!
Group Icon

Group: Regular Member
Posts: 1,998
Joined: 3-November 03
From: South Africa, Johannesburg
Member No.: 2,166

Sex: Male



My_World I dont know, sad.gif I just deleted the scripts that I know needed to change eg: net.eth0 and such. Oh well you learn something new. Out of anger I jsut selected update all with out backing the config files up which didnt turn out to badly in the end. I did have to go through them again and re configure a lot but it is all working.

Well thats one lesson that was learnt the hard way.
User is offlineProfile CardPM
+Quote PostGo to the top of the page

Reply to this topicStart new topic

Collapse

> Similar Topics

Topic Title Replies Topic Starter Views Last Action
Driver Updating 2 Simon 400 Jan 10 2004, 10:25 AM
Last post by: naughty
Updating Win95 To Win98 0 pturner67 301 Dec 17 2002, 06:22 AM
Last post by: pturner67
Updating Linux 4 matoko 393 Aug 15 2002, 11:03 PM
Last post by: -Geordie-


 



- Lo-Fi Version Time is now: 21st March 2010 - 10:39 AM
Privacy Policy
South Africa's Top Sites Kinetiq