split emergency_shell function
authorDave Young <dyoung@redhat.com>
Wed, 1 Aug 2012 10:07:52 +0000 (18:07 +0800)
committerHarald Hoyer <harald@redhat.com>
Wed, 1 Aug 2012 12:29:15 +0000 (14:29 +0200)
commit126732bcc1f5425c14923db59487eabb448ab846
tree926f7f0a802bb454aa3e34ae144bd1e252545907
parent23d6dcd1256597f55e98cf535f6a9affb058e868
split emergency_shell function

Kdump dracut hooks need to enter emergency shell, currently it directly call
"sh -i -l", with recent dracut this does not work anymore without proper ctty.

It will be convinient to seperate a standalone function _emergency_shell for
dracut modules to call.
modules.d/99base/dracut-lib.sh