Kaydet (Commit) 6402bf7e authored tarafından sulincix's avatar sulincix

kd

üst 06777d2f
......@@ -13,9 +13,9 @@ else
debug "Install main modules"
cp -prf ${MODDIR}/kernel/{crypto,fs,lib} ${WORKDIR}/${MODDIR}
debug "Install drivers"
cp -prf ${MODDIR}/kernel/drivers/{block,ata,md,firewire} ${WORKDIR}/${MODDIR}
cp -prf ${MODDIR}/kernel/drivers/{scsi,pcmcia,virtio} ${WORKDIR}/${MODDIR}
cp -prf ${MODDIR}/kernel/drivers/usb/{host,storage} ${WORKDIR}/${MODDIR}
cp -prf ${MODDIR}/kernel/drivers/* ${WORKDIR}/${MODDIR}
debug "Remove useless module"
rm -rf ${WORKDIR}/${MODDIR}/{gpu,net}
if [ "$debug" != "true" ] ; then
debug "Remove debug drivers"
find ${WORKDIR}/${MODDIR} | grep debug | xargs rm -rf
......
......@@ -122,17 +122,27 @@ classic_boot(){
mount -t auto -o defaults,$ro $root /rootfs
common_boot || fallback_shell
}
wait_device(){
msg "Waiting for $device"
while [ ! -b "$device" ] ; do
sleep 0.1
done
}
if [ "$boot" == "live" ]; then
live_boot || fallback_shell
msg "Booting from live-media" "($root)"
elif [ "$boot" == "normal" ]; then
wait_device
normal_boot || fallback_shell
msg "Booting from" "$root"
elif [ "$boot" == "freeze" ]; then
wait_device
freeze_boot || fallback_shell
msg "Booting from" "$root (freeze)"
else
wait_device
classic_boot || fallback_shell
msg "Booting from" "$root (classic)"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment