[Nix-dev] NixOS on systemd

Rickard Nilsson rickard.nilsson at telia.com
Fri Aug 31 09:21:16 CEST 2012


Hi,

Den 2012-08-30 20:51:14 skrev Eelco Dolstra <eelco.dolstra at logicblox.com>:

> Hi all,
>
> For the last few months I've been working on and off on replacing  
> Upstart with
> systemd as NixOS's init system.  This is now in a fairly usable state.   
> (I'm
> running it on my own laptop, but it hasn't been widely tested and there  
> are
> undoubtedly many issues remaining.)
>
> If you want to test it, do:
>
> $ git clone -b systemd git://github.com/edolstra/nixos.git nixos-systemd
> $ nixos-rebuild switch -I nixos=/path/to/nixos-systemd
> $ reboot

Great work! Thanks!

I tried it out, and it worked mostly fine (I have yet to play around with  
it more), but I get some strange error with nix and sudo.

See below, where I do "sudo -i nixos-rebuild -I ... switch". The build  
fails since I haven't sorted out the network-manager's systemd build yet.  
But nix prints these "cannot unlink"-messages that wasn't there before the  
systemd switch.

Also, if I try to use sudo again after the command, I get an assertion  
error. I have to reboot to get sudo to work again.

.
.
.
make[2]: *** [install-systemdsystemunitDATA] Error 1
make[2]: Leaving directory  
`/tmp/nix-build-szxvjc05y81dgnw55bnsyndmfmcaq8pi-network-manager-0.9.6.0.drv-0/NetworkManager-0.9.6.0/data'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory  
`/tmp/nix-build-szxvjc05y81dgnw55bnsyndmfmcaq8pi-network-manager-0.9.6.0.drv-0/NetworkManager-0.9.6.0/data'
make: *** [install-recursive] Error 1
builder for  
`/nix/store/szxvjc05y81dgnw55bnsyndmfmcaq8pi-network-manager-0.9.6.0.drv'  
failed with exit code 2
error (ignored): cannot unlink  
`/nix/store/szxvjc05y81dgnw55bnsyndmfmcaq8pi-network-manager-0.9.6.0.drv.chroot/proc/dri/0/vma':  
Operation not permitted
cannot build derivation  
`/nix/store/p1vrisd377fj6s2a20yixvkxsqzd1n6c-system-path.drv': 1  
dependencies couldn't be built
cannot build derivation  
`/nix/store/5wia39dn7h7ivp546mjv8z9xnwi44x21-nixos-0.1pre-git.drv': 1  
dependencies couldn't be built
error: build of  
`/nix/store/5wia39dn7h7ivp546mjv8z9xnwi44x21-nixos-0.1pre-git.drv' failed

$ sudo su -
sudo: /nix/store/qa80dkazhngww41z9wn0n3j38awwh40w-setuid-wrapper.c:25:  
main: Assertion `len > 0' failed.
Aborted


I'll be switching back to upstart since these things are rather  
deal-breaking, but if you want me to debug this more in some way, just  
tell me.


Regards,
   Rickard


More information about the nix-dev mailing list