Move creation of /root to the activation script

...so it appears in a new installation before rebooting the system.
This commit is contained in:
Eelco Dolstra 2018-02-05 21:12:17 +01:00
parent f9e64dbe76
commit cc0caac098
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 2 additions and 1 deletions

View file

@ -533,6 +533,8 @@ in {
-I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl \
-I${pkgs.perlPackages.JSON}/lib/perl5/site_perl \
${./update-users-groups.pl} ${spec}
install -m 0700 -d /root
'';
# for backwards compatibility

View file

@ -82,7 +82,6 @@ ln -s /proc/mounts /etc/mtab
mkdir -m 01777 -p /tmp
mkdir -m 0755 -p /var/{log,lib,db} /nix/var /etc/nixos/ \
/run/lock /home /bin # for the /bin/sh symlink
install -m 0700 -d /root
# Miscellaneous boot time cleanup.