-
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

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT
$7.99

Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter
$27.50

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver
$5.40

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA
$28.94

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+
$16.99

Lot of 5 Cisco 10G SFP+ 850nm 300m Transceiver Module P/N: SFP-10G-SR-10-2415-03
$15.00

Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED
$24.99

Arista SFP-10G-SR 10GBASE-SR XVR-10001-20 850nm SFP+ Optical Transceiver
$30.00