diff options
author | Roger Qiu <roger.qiu@polycademy.com> | 2016-04-06 00:06:53 +1000 |
---|---|---|
committer | Roger Qiu <roger.qiu@polycademy.com> | 2016-04-06 00:27:18 +1000 |
commit | 53e8e9393904d8f585cfd39d6843f51ef0b49efe (patch) | |
tree | 758dbad66bb53db51f6bfc0fddf32f25e3f14885 /nixos/modules/system/boot/stage-1-init.sh | |
parent | 1f8ffdde5bd1a7f3d985bbb62478c21670e60e11 (diff) | |
download | nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.tar nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.tar.gz nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.tar.bz2 nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.tar.lz nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.tar.xz nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.tar.zst nixlib-53e8e9393904d8f585cfd39d6843f51ef0b49efe.zip |
nixos/stage-1: Removed logCommands conditional for resetting the file descriptors after completion of logging
Diffstat (limited to 'nixos/modules/system/boot/stage-1-init.sh')
-rw-r--r-- | nixos/modules/system/boot/stage-1-init.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index c0c2b6a94164..1f8779abf0c3 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -434,11 +434,8 @@ udevadm control --exit # Reset the logging file descriptors. # Do this just before pkill, which will kill the tee process. -if test -n "@logCommands@" -then - exec 1>&$logOutFd 2>&$logErrFd - eval "exec $logOutFd>&- $logErrFd>&-" -fi +exec 1>&$logOutFd 2>&$logErrFd +eval "exec $logOutFd>&- $logErrFd>&-" # Kill any remaining processes, just to be sure we're not taking any # with us into stage 2. But keep storage daemons like unionfs-fuse. |