View previous topic :: View next topic |
Author |
Message |
brazzmonkey Guru
Joined: 16 Jan 2005 Posts: 372 Location: between keyboard and chair
|
Posted: Fri Jun 02, 2006 8:16 pm Post subject: getting rid of "mtimes differ" boot message |
|
|
many times, usually after some software updates, i get "mtimes differ" messages at boot time. that's not big deal (it doesn't prevent my system from booting), it's just annoying, and it slows down boot process a little bit.
there are several reasons for that (but honnestly i don't which ones) and there are different solutions to get rid of these messages. sometimes some works, others don't.
basically i combine both usual solutions in the following shell script (i'm no coder, so it's just copy&paste of stuff i found on the forums - credits : see below) :
Code: | for x in /etc/init.d/*; do [[ "$(file -b $x)" == *runscript*script* ]] && (echo $x; source /etc/conf.d/$(basename $x) &>/dev/null; svclib=/lib/rcscripts; depend(){ :;}; source $x); done;
depscan.sh -u; |
you may save it in a file, i use "fix-mtimes-differ" as a name - how fun - and store in a folder that's part of $PATH, so i can quickly invoke it whenever it's required.
if ever "mtimes differ" messages still occur after running the script, you'll need to re-emerge baselayout :
thanks to ecatmur, SoylentGreen, or any other guy(s) who suggested these solutions first... |
|
Back to top |
|
|
Braempje l33t
Joined: 31 Jan 2003 Posts: 748
|
|
Back to top |
|
|
sean345 Tux's lil' helper
Joined: 11 Mar 2005 Posts: 103 Location: California
|
Posted: Tue Jun 06, 2006 1:45 am Post subject: |
|
|
Each time I get the mtimes error message, I've used this command:
Code: | touch /etc/init.d/*; /sbin/depscan.sh --update |
It has always worked for me.
- Sean _________________ If cities were built like software is built, the first woodpecker to come along would level civilization.
Black Frog Studios |
|
Back to top |
|
|
brazzmonkey Guru
Joined: 16 Jan 2005 Posts: 372 Location: between keyboard and chair
|
Posted: Tue Jun 06, 2006 2:48 pm Post subject: |
|
|
from my own experience, a simple depscan.sh -u doesn't always work, so i thought a thread that summarizes the different ways of solving mtimes differ issues would be useful.
this is one of threads my post is based on. |
|
Back to top |
|
|
|
|
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
|
|