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

kd

üst 06777d2f
...@@ -13,9 +13,9 @@ else ...@@ -13,9 +13,9 @@ else
debug "Install main modules" debug "Install main modules"
cp -prf ${MODDIR}/kernel/{crypto,fs,lib} ${WORKDIR}/${MODDIR} cp -prf ${MODDIR}/kernel/{crypto,fs,lib} ${WORKDIR}/${MODDIR}
debug "Install drivers" debug "Install drivers"
cp -prf ${MODDIR}/kernel/drivers/{block,ata,md,firewire} ${WORKDIR}/${MODDIR} cp -prf ${MODDIR}/kernel/drivers/* ${WORKDIR}/${MODDIR}
cp -prf ${MODDIR}/kernel/drivers/{scsi,pcmcia,virtio} ${WORKDIR}/${MODDIR} debug "Remove useless module"
cp -prf ${MODDIR}/kernel/drivers/usb/{host,storage} ${WORKDIR}/${MODDIR} rm -rf ${WORKDIR}/${MODDIR}/{gpu,net}
if [ "$debug" != "true" ] ; then if [ "$debug" != "true" ] ; then
debug "Remove debug drivers" debug "Remove debug drivers"
find ${WORKDIR}/${MODDIR} | grep debug | xargs rm -rf find ${WORKDIR}/${MODDIR} | grep debug | xargs rm -rf
......
...@@ -122,17 +122,27 @@ classic_boot(){ ...@@ -122,17 +122,27 @@ classic_boot(){
mount -t auto -o defaults,$ro $root /rootfs mount -t auto -o defaults,$ro $root /rootfs
common_boot || fallback_shell common_boot || fallback_shell
} }
wait_device(){
msg "Waiting for $device"
while [ ! -b "$device" ] ; do
sleep 0.1
done
}
if [ "$boot" == "live" ]; then if [ "$boot" == "live" ]; then
live_boot || fallback_shell live_boot || fallback_shell
msg "Booting from live-media" "($root)" msg "Booting from live-media" "($root)"
elif [ "$boot" == "normal" ]; then elif [ "$boot" == "normal" ]; then
wait_device
normal_boot || fallback_shell normal_boot || fallback_shell
msg "Booting from" "$root" msg "Booting from" "$root"
elif [ "$boot" == "freeze" ]; then elif [ "$boot" == "freeze" ]; then
wait_device
freeze_boot || fallback_shell freeze_boot || fallback_shell
msg "Booting from" "$root (freeze)" msg "Booting from" "$root (freeze)"
else else
wait_device
classic_boot || fallback_shell classic_boot || fallback_shell
msg "Booting from" "$root (classic)" msg "Booting from" "$root (classic)"
fi 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