initram: start emergency shell if failed to switch to specified root
This commit is contained in:
parent
311fd299f6
commit
a5f1bed085
|
@ -125,6 +125,8 @@ if [ -n "$KOPT_root" ]; then
|
||||||
done
|
done
|
||||||
sync
|
sync
|
||||||
exec /bin/busybox switch_root $NEWROOT $chart_init /sbin/init $KOPT_init_args
|
exec /bin/busybox switch_root $NEWROOT $chart_init /sbin/init $KOPT_init_args
|
||||||
|
echo "initramfs emergency recovery shell launched"
|
||||||
|
exec /bin/busybox sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# locate boot media and mount it
|
# locate boot media and mount it
|
||||||
|
|
Loading…
Reference in New Issue