[Nix-dev] How do I chroot into my NixOS partition?
Joe Hillenbrand
joehillen at gmail.com
Tue Dec 16 23:53:00 CET 2014
Sorry, I can't figure out how to get the latest version of nixos-install.
The version that comes with latest-iso-minimal doesn't support `--chroot`
On Tue, Dec 16, 2014 at 12:11 PM, Domen Kožar <domen at dev.si> wrote:
>
> $ 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/bec68836/attachment-0001.html
More information about the nix-dev
mailing list