diff options
author | Christoph Ruegge <c.ruegge@math.uni-goettingen.de> | 2020-11-03 17:57:17 +0100 |
---|---|---|
committer | Christoph Ruegge <c.ruegge@math.uni-goettingen.de> | 2020-11-05 15:32:19 +0100 |
commit | bcc808c68f7d9dc62131977aca44182932a4719f (patch) | |
tree | a038e29df328e0ad7b8fe368623f2f950a5797de | |
parent | e371443a1e663d385b78d9f47b6a49f2620698e2 (diff) | |
download | nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.tar nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.tar.gz nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.tar.bz2 nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.tar.lz nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.tar.xz nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.tar.zst nixpkgs-bcc808c68f7d9dc62131977aca44182932a4719f.zip |
Create /dev/std{in,out,err} symlinks in stage-1
This used to be done by udev, but that was removed in systemd/systemd@6b2229c. The links are created by systemd at the end of stage-2, but activation scripts might need them earlier.
-rw-r--r-- | nixos/modules/system/boot/stage-1-init.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index e5cafe237cd..abc1a0af48a 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -219,6 +219,9 @@ done @preDeviceCommands@ echo "running udev..." ln -sfn /proc/self/fd /dev/fd +ln -sfn /proc/self/fd/0 /dev/stdin +ln -sfn /proc/self/fd/1 /dev/stdout +ln -sfn /proc/self/fd/2 /dev/stderr mkdir -p /etc/systemd ln -sfn @linkUnits@ /etc/systemd/network mkdir -p /etc/udev |