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

Domen Kožar domen at dev.si
Tue Dec 16 21:11:11 CET 2014


$ nixos-install --chroot --root /mnt

On Tue, Dec 16, 2014 at 9:08 PM, Joe Hillenbrand <joehillen at gmail.com>
wrote:
>
> 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?
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20141216/6d1100d2/attachment.html 


More information about the nix-dev mailing list