Skip to content
Snippets Groups Projects
Commit a5f1bed0 authored by Natanael Copa's avatar Natanael Copa
Browse files

initram: start emergency shell if failed to switch to specified root

parent 311fd299
No related merge requests found
......@@ -125,6 +125,8 @@ if [ -n "$KOPT_root" ]; then
done
sync
exec /bin/busybox switch_root $NEWROOT $chart_init /sbin/init $KOPT_init_args
echo "initramfs emergency recovery shell launched"
exec /bin/busybox sh
fi
# locate boot media and mount it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment