]> code.ossystems Code Review - openembedded-core.git/commit
initrd: Spawn an emergency shell when something goes wrong
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 27 Sep 2012 14:20:50 +0000 (15:20 +0100)
committerSaul Wold <sgw@linux.intel.com>
Fri, 28 Sep 2012 08:14:02 +0000 (01:14 -0700)
commitae5e2bd994e3f60d3803ab56e6ed34d08fbc56f0
treed28a987d0e18ccc26554c1b305f7ab2060f7c0ca
parent03ad4edace5db9c6e15ca776d06d20b7d4e42afc
initrd: Spawn an emergency shell when something goes wrong

set -e allows to exit if a command fails. We install a trap and execute
emergency_shell() when either the init script exits or when ctrl-c is
typed (say if we are stuck somewhere and we want to debug it).

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initrdscripts/files/init-live.sh