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

usb boot fix

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