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

usb boot fix

üst d78a7477
#!/busybox sh
msg "Loading filesystem drivers"
ls /lib/modules/*/fs/ | sed "s/^/modprobe /g" | sed "s/$/ &/g" > /fs
sh /fs &>/dev/null
if [ -x /xbin/udevd -a -x /xbin/udevadm ] && [ "$noudev" != "true" ]; then
msg "Triggering udev"
/xbin/udevd --daemon
......@@ -9,9 +12,6 @@ else
find /lib/modules/ | sed "s/.*\///g" | grep "\.ko" | sed "s/.ko.*/ &/g" | sed "s/^/modprobe /g"> /load_modules.sh
msg "Trying to load kernel modules"
sh /load_modules.sh &>/dev/null
msg "Waiting for kernel modules"
sleep 2
fi
msg "Loading filesystem drivers"
ls /lib/modules/*/fs/ | sed "s/^/modprobe /g" | sed "s/$/ &/g" > /fs
sh /fs &>/dev/null
msg "Waiting for kernel modules"
sleep 2
......@@ -80,10 +80,10 @@ live_boot(){
debug "Mounting live media"
mkdir /output
mkdir /source
mount -t auto $root /output
mount /output/${sfs} /source
mount -t auto $root /output || fallback_shell
mount /output/${sfs} /source || fallback_shell
overlay_mount
[ -d /output/merge ] && cp -prfv /output/merge/* /rootfs/
[ -d /output/merge ] && cp -prf /output/merge/* /rootfs/ &>/dev/null
live_config
common_boot || fallback_shell
}
......
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