[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#63006: Updating locate database slows down initial boot process.



Adam Di Carlo wrote:
> I can see how it would be nice to inhibit the locate database on that
> first boot, but I don't see how we could safely and robustly
> accomplish this.

I don't know what exactly do you refer. The locate database update is 
performed by a script named /sbin/setup.sh in the base system, which 
removes itself afterwards, this file is executed only if it exists, by
these lines in /etc/init.d/rcS

if [ -x /sbin/setup.sh ]
then
  /sbin/setup.sh
fi

so I think just commenting out the line which adds the setup.sh 
file to the base2_2.tgz file should work:

diff -r -u boot-floppies.orig/basedisks.sh boot-floppies/basedisks.sh
--- boot-floppies.orig/basedisks.sh	Sun Apr 23 09:07:42 2000
+++ boot-floppies/basedisks.sh	Fri May  5 17:25:35 2000
@@ -345,7 +345,7 @@
 # for root, override the language defined in /etc/environment
 # echo -e "\nexport LANG=C" >>$B/root/.bashrc
 
-cp $scripts/new_root_home/setup.sh $B/sbin
+#cp $scripts/new_root_home/setup.sh $B/sbin
 #(cd $scripts/new_root_home && tar cf - . --exclude CVS) | tar -xf - -C $B/root
 testexit
 chown -R root.root $B/root

Is this safe and robust enough?


Reply to: