Skip to contentSkip to conversation

Revert "initrd: Spawn an emergency shell when something goes wrong"

PATCH Applied Ross Burton 2 participants 2 messages Oct 2, 2012 – Oct 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "initrd: Spawn an emergency shell when something goes wrong"

This had nowhere near enough testing...

This reverts commit ffb6928f5783e5202d9849c3a185e29be1d41c63.

---
 meta/recipes-core/initrdscripts/files/init-live.sh |   11 -----------
 1 file changed, 11 deletions(-)
meta/recipes-core/initrdscripts/files/init-live.sh +0 -11
index 2639308..5682fd1 100644
@@ -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"
Signature · 1 line
1.7.10
Applied
#1 lore raw
Quoted 22 lines · Ross Burton

This had nowhere near enough testing...

This reverts commit ffb6928f5783e5202d9849c3a185e29be1d41c63.

---
  meta/recipes-core/initrdscripts/files/init-live.sh |   11 -----------
  1 file changed, 11 deletions(-)
meta/recipes-core/initrdscripts/files/init-live.sh +0 -4
index 2639308..5682fd1 100644
@@ -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

meta/recipes-core/initrdscripts/files/init-live.sh line 7

Quoted 10 lines
meta/recipes-core/initrdscripts/files/init-live.sh +0 -7
-    sh
-}
-trap "emergency_shell" 0 2
-
-# exit immediately if a command fails
-set -e
-
  ROOT_MOUNT="/rootfs/"
  ROOT_IMAGE="rootfs.img"
  MOUNT="/bin/mount"

Merged into OE-Core

Thanks
Sau!