[Nix-dev] /etc/skel, useradd - resolve symlinks before copying?
Florian Friesdorf
flo at chaoflow.net
Sat Feb 12 15:44:45 CET 2011
On Sat, Feb 12, 2011 at 03:09:13PM +0100, Marc Weber wrote:
> Excerpts from Florian Friesdorf's message of Sat Feb 12 14:39:22 +0100 2011:
> > Does it need to be a symlink at all or could the nix expression just
> > generate a file
>
> Of course it can.
> Have a look at nixos/modules/system/etc/setup-etc.pl
>
> # Remove dangling symlinks that point to /etc/static. These are
> # [..]
> sub cleanup {
>
> So files won't dangle. So you have to do extra book keeping then.
> That's why I suggested patching useradd instead.
+1
--
Florian Friesdorf <flo at chaoflow.net>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
More information about the nix-dev
mailing list