Welcome to little lamb

Code » anopa » commit 592a62d

stage0: Fix stderr not on console upon break

author Olivier Brunel
2016-10-30 18:56:11 UTC
committer Olivier Brunel
2017-06-18 11:52:12 UTC
parent 533db066680e2fbf427dadbb3cf3c733474c3691

stage0: Fix stderr not on console upon break

src/scripts/aa-stage0 +1 -0

diff --git a/src/scripts/aa-stage0 b/src/scripts/aa-stage0
index cd44522..3c3d747 100755
--- a/src/scripts/aa-stage0
+++ b/src/scripts/aa-stage0
@@ -51,6 +51,7 @@ foreground { if -n
     if -t { aa-incmdline -Dqf /root-fs/proc/cmdline break }
     foreground { aa-echo -DB "Break requested" }
     foreground { aa-echo -Dt "Trying to open a shell; " +g exit +w " to continue" }
+    fdmove -c 2 1
     emptyenv -c sh -i
   }
 }