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

This commit is contained in:
Natanael Copa 2009-03-15 20:06:53 +00:00
parent 311fd299f6
commit a5f1bed085
1 changed files with 2 additions and 0 deletions

View File

@ -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