-
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

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

TP-Link TL-SG1048 48-Port Gigabit Rackmount Switch New Factory Sealed
$199.99

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$49.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

TP-Link TL-SG2210P 10-Port Gigabit Smart Switch w/ 8-Port PoE+ NO AC SKU 25597
$36.98

5 Port Gigabit Unmanaged Ethernet Switch, Home Network Hub, Office Ethernet S...
$9.64

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99

Linksys LGS328MPC 24-Port Managed Gigabit PoE+ Switch with 4 10G SFP+ Uplinks
$224.95