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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue