[Nix-dev] Problem with grub

Michael Raskin 7c6f434c at mail.ru
Mon May 9 18:18:23 CEST 2011


>> Yes, that is what I am ranting on #nixos the last week or so
>> 
>> The problem is GRUB update. What you need is a good recovery something 
>> with relatively fresh GRUB2 working. Most probably you can simply 
>> 'set root=(hd?,?)' (I have no idea about your layout),  'linux /boot/nixos-kernel',
>> and 'initrd /nixos-initrd' (then 'boot').
>
>When I try this, I get a critical error from virtualbox.
>(I can post the VBox.log if it can be useful).

I have no understanding of VirtualBox... 

Anyway, if VBox fails because of something done by internally run code, 
it is a VBox bug - I have no knowledge of it to help you work around it

>> Technically, you can boot, mount, chroot and use /nix/var/nix/profiles/system/ 
>> if you prefer.
>
>I tried this also but nixos-rebuild and related commands do not work.
>This is what I did:
>
>mount /mnt -L nixos
>chroot /mnt /bin/sh
>source /etc/bashrc
>export PATH=$PATH:/nix/var/nix/profiles/system/
>mount /proc
>nix-env -p /nix/var/nix/profiles/system --list-generations
>[... works ...]
>nixos-rebuild boot
>[...]
>cannot connect to daemon at `/nix/var/nix/daemon-socket/socket`

export NIX_REMOTE=






More information about the nix-dev mailing list