# stage1 need this
mkdir -p /image

#setup stage2 as init
mv -f /usr/sbin/install2 /sbin/init

# run depmod
/bin/sh <<__EOF__
cd /
unset DURING_INSTALL
for i in /lib/modules/*; do
    /sbin/depmod -a -F /boot/System.map-\$(basename \$i) \$(basename \$i)
done
__EOF__

# run only needed hotplug scripts
subst "s,\(HOTPLUGRC=\)\(.*\),\1\"usb.rc pci.rc block.rc misc.rc\"," /etc/sysconfig/hotplug
