mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
Revert "initrd: Spawn an emergency shell when something goes wrong"
This had nowhere near enough testing...
This reverts commit ffb6928f57.
(From OE-Core rev: f162f0ecc96fdfb564aad968e5b8bc670640ea68)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
51ad952626
commit
be8dd82ce9
@@ -2,17 +2,6 @@
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
emergency_shell()
|
||||
{
|
||||
echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!"
|
||||
echo
|
||||
sh
|
||||
}
|
||||
trap "emergency_shell" 0 2
|
||||
|
||||
# exit immediately if a command fails
|
||||
set -e
|
||||
|
||||
ROOT_MOUNT="/rootfs/"
|
||||
ROOT_IMAGE="rootfs.img"
|
||||
MOUNT="/bin/mount"
|
||||
|
||||
Reference in New Issue
Block a user