#!/bin/bash

#"umount -a" because updatedb will run very long otherwise
umount -a
echo ldconfig
ldconfig
echo makewhatis
makewhatis
echo updatedb
updatedb
mount -a

#reinstall kernel modules here
cd /usr/src/linux &&
make modules &&
make modules_install

echo ""
echo ""
echo "you may want to reboot from newly created lfs and"
echo "start another system to backup this new lfs now."
#reboot
