We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ea7a19 + df8e6f7 commit 21e39e9Copy full SHA for 21e39e9
nixos/modules/system/activation/activation-script.nix
@@ -110,14 +110,19 @@ in
110
default = {};
111
112
example = literalExpression ''
113
- { stdio.text =
114
- '''
115
- # Needed by some programs.
116
- ln -sfn /proc/self/fd /dev/fd
117
- ln -sfn /proc/self/fd/0 /dev/stdin
118
- ln -sfn /proc/self/fd/1 /dev/stdout
119
- ln -sfn /proc/self/fd/2 /dev/stderr
120
- ''';
+ {
+ stdio = {
+ # Run after /dev has been mounted
+ deps = [ "specialfs" ];
+ text =
+ '''
+ # Needed by some programs.
+ ln -sfn /proc/self/fd /dev/fd
121
+ ln -sfn /proc/self/fd/0 /dev/stdin
122
+ ln -sfn /proc/self/fd/1 /dev/stdout
123
+ ln -sfn /proc/self/fd/2 /dev/stderr
124
+ ''';
125
+ };
126
}
127
'';
128
0 commit comments