author | Olivier Brunel
<jjk@jjacky.com> 2018-01-25 17:56:18 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2018-01-25 17:56:18 UTC |
parent | 89118ac4ddca20c40125f55d8ceeb047c11bfb9d |
src/scripts/aa-stage4 | +6 | -0 |
diff --git a/src/scripts/aa-stage4 b/src/scripts/aa-stage4 index 3a7be35..200e9e7 100755 --- a/src/scripts/aa-stage4 +++ b/src/scripts/aa-stage4 @@ -23,6 +23,12 @@ /bin/emptyenv /bin/s6-envdir /etc/anopa/env /bin/exec +# Make sure we're sane +cd / +redirfd -r 0 /dev/console +redirfd -w 1 /dev/console +fdmove -c 2 1 + foreground { aa-echo -B "Stage 4: Unmounting root file system..." } foreground { foreground { emptyenv -c s6-setsid aa-ctty -O3 -s aa-stop -r /services -a }