[Nix-dev] How do I chroot into my NixOS partition?

Joe Hillenbrand joehillen at gmail.com
Tue Dec 16 21:08:17 CET 2014


I want chroot into my NixOS partition from my Ubuntu partition, but I can't
figure out how do get a shell.

$ mount /dev/mapper/vg0-nixos /mnt
$ mount -o /dev /mnt/dev
$ mount -o bind /boot /mnt/boot
$ mount  -t sysfs /sys /mnt/sys
$ mount -t proc none /mnt/proc
$ chroot /mnt /usr/bin/env -i /bin/sh -l
sh: mkdir: command not found
sh: stat: command not found
sh: id: command not found
sh: ln: command not found
sh: mkdir: command not found
sh: stat: command not found
sh: id: command not found
sh: rm: command not found
sh: mkdir: command not found
sh: ln: command not found

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141216/2be3b902/attachment.html 


More information about the nix-dev mailing list