Kaydet (Commit) b7d143ad authored tarafından Your Name's avatar Your Name

fix boot

üst 660d32c2
...@@ -13,7 +13,7 @@ run_modules(){ ...@@ -13,7 +13,7 @@ run_modules(){
for i in $(ls /scripts | sort) for i in $(ls /scripts | sort)
do do
debug "Running $i" debug "Running $i"
. /scripts/$i || fallback_shell . /scripts/$i || true
done done
} }
mount_handler(){ mount_handler(){
...@@ -47,10 +47,11 @@ is_file_avaiable(){ ...@@ -47,10 +47,11 @@ is_file_avaiable(){
} }
fallback_shell(){ fallback_shell(){
warn "Booting dead. Now you are in initial ramdisk."
while true while true
do do
warn "Booting dead. Now you are in initial ramdisk."
/busybox setsid cttyhack /bin/sh || /busybox sh /busybox setsid cttyhack /bin/sh || /busybox sh
clear
done done
} }
detect_root(){ detect_root(){
......
#!/busybox ash #!/busybox ash
. /vars . /vars
. /functions . /functions
generate_rootfs || fallback_shell generate_rootfs
mount_handler || fallback_shell mount_handler
parse_cmdline || fallback_shell parse_cmdline
detect_root || fallback_shell detect_root
run_modules || fallback_shell run_modules
while true fallback_shell
do
/busybox sleep 999
done
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