-
Senior Member
registered user
Skip regenerate ld.so.cache and modules.dep by cheat code
Hi everyone,
I've learned alot from this forum so I thought it time for me to conribute... I have seen this come up from time to time. .... On HD-Install systems knoppix-autoconfig regenerates ld.so.cache and modules.dep and each startup adding a fair amount of time to your boot sequence. If the hardware in the machine has not been changed since last boot then ld.so.cache and modules.dep doesnt HAVE to be regenerated..... SOooo...
1st backup your knoppix-autoconfig as root like so:
Code:
cp /etc/init.d/knoppix-autoconfig /etc/init.d/knoppix-autoconfig.BACKUP
Find this section in /etc/init.d/knoppix-autoconfig:
Code:
if [ -n "$INSTALLED" ]; then
echo -n "${BLUE}Running from HD, regenerate ld.so.cache and modules.dep...${NORMAL}"
# Regenerate ld.so.cache and module dependencies on HD
ldconfig ; depmod -a 2>/dev/null
# knoppix-installer bug workaround
chmod 1777 /tmp 2>/dev/null
echo ""
fi
Edit this section as follows:
Code:
if [ -n "$INSTALLED" ]; then
if ! checkbootparam "nomodregen"; then
echo -n "${BLUE}Running from HD, regenerate ld.so.cache and modules.dep...${NORMAL}"
# Regenerate ld.so.cache and module dependencies on HD
ldconfig ; depmod -a 2>/dev/null
# knoppix-installer bug workaround
chmod 1777 /tmp 2>/dev/null
echo ""
else chmod 1777 /tmp 2>/dev/null ; echo -n "${BLUE}Not regenerating ld.so.cache and modules.dep as per your request...${NORMAL}" ; echo ""
fi
fi
Then issuing the "nomodregen" cheat-code will allow you to skip this regeneration process.... Even on a static machine this should probably be done from time to time....so if you need to Regenerate ld.so.cache and module dependencies the following commads may be issued:
This ofcoarse may be added to a script like /usr/bin/knx-mod-regen
Code:
#!/bin/bash
echo Regenerating ld.so.cache and module dependencies.....
ldconfig ; depmod -a
I almost made a diff to patch knoppix-autoconfig but I figured showing it the long way might be helpfull to someone
...
Anyway, enjoy 
-onemyndseye
Similar Threads
-
By RoyalMail in forum Ideas
Replies: 1
Last Post: 02-01-2010, 05:23 PM
-
By Uncle Stinky in forum Hardware & Booting
Replies: 2
Last Post: 12-30-2007, 12:53 PM
-
By srbanator in forum Tips and Tricks
Replies: 2
Last Post: 05-08-2006, 11:42 AM
-
By CrashedAgain in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 01-14-2005, 06:15 AM
-
By dng88 in forum General Support
Replies: 5
Last Post: 12-04-2003, 11:37 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Apple Macintosh Classic M1420 Vintage Desktop Computer Model Macintosh Classic
$100.00

Vintage Edmark TouchWindow for Macintosh DeskTop Computer Touch Window Never Usd
$63.99

Vintage 1998 iMac G3 M4984 Mac OS + Keyboard Working but Needs Some Repair Read
$295.00

Mixed Lot Vintage Mac Windows media / Graphics / Sound Software - CDs 37 Pieces
$40.99

Vintage Apple Macintosh Plus Desktop Computer - M0001A
$150.00

Vintage Mac System 7 Personal Upgrade Kit Apple Software 3.5” Floppy
$29.99

185--Sonnet Crescendo G3 PPCG3-375-5-K-06 G3 Add-On Card for Vintage Mac
$99.00

Vintage Apple Pro Keyboard USB Mac M7803 **Used in box
$75.00

Apple Power Macintosh PowerPC 7300/200 VTG w Keyboard Mouse Storage Drive Read
$199.99

Vintage Apple Macintosh Keyboard M0115
$120.00