nixpkgs/nixos/modules/system
Artturin f25f2a4209 nixos/stage-2-init: dont use install to create /etc/nixos if it's a symlink
it should be checking that it is not a broken symlink but bash
conditionals are difficult

-d was causing the directory to not be created if it does not exist

```
$ install -m 0755 -d $PWD/hello
$ ls
hello/
$ ln -s something notexist
'notexist' -> 'something'
$ ls -l
lrwxrwxrwx artturin artturin 9 B Sat Sep  9 06:59:44 2023 notexist@ ⇒ something
drwxr-xr-x artturin artturin 2 B Sat Sep  9 06:59:36 2023 hello/
$ install -m 0755 -d $PWD/notexist
install: cannot change permissions of ‘/home/artturin/nixgits/my-nixpkgs/test/notexist’: No such file or directory
```
2023-09-09 07:22:05 +03:00
..
activation nixos/stc: Improve mount unit handling 2023-08-21 09:07:14 +02:00
boot nixos/stage-2-init: dont use install to create /etc/nixos if it's a symlink 2023-09-09 07:22:05 +03:00
etc nixos/etc: keep directories in derivation name 2023-06-07 00:08:43 +02:00
build.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00