-
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
Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2
$295.00
Apple 2019 Mac Pro 28-Core Xeon W-3275M 96GB RAM 1TB SSD Radeon Pro 580X 8GB
$2999.97
Dell 15.6" NVIDIA Gaming Laptop - Intel Quad Core i7 64GB RAM 2TB SSD Windows 11
$446.00
Dell 5500 15.6" Touch Light Gaming Laptop Intel Core i5 4.10GHz 64GB RAM 2TB SSD
$399.00
AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A...
$304.95
Intel Core i7-3770 SR0PK 3.40GHz Quad Core LGA1155 8MB Processor CPU
$26.99
Intel Core i5-7500 - 3.40GHZ Quad Core CPU Processor
$29.95
Dell Inspiron 142-in-1 Touch Laptop Intel Core 5 Processor 8GB Memory...
$749.99
New HP 24" All In One Desktop Computer 11th Gen i3 Up To 32GB RAM 2TB SSD Win 11
$409.99
Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H
$349.99