Re: [Nix-dev] bootstrap failure

2011-11-21 Thread Kevin Quick
On Mon, 21 Nov 2011 22:24:18 -0700, Michael Raskin 7c6f4...@mail.ru  
wrote:

 Anyone know what might be going wrong with the nix-env invocation in the
 bootstrap attempt below?  This was following a bash
 /mnt/nix/store/nixos-prepare-install checkout-sources operation.

 +  
 /nix/store/v8yf6bzqzgfszd3v6q15f100hq6x73yl-nix-1.0pre26015/bin/nix-env
 -p /nix/var/nix/profiles/system -f /etc/nixos/nixos --set -A system -j2
 --keep-going
 error: user-thrown exception: Not defined.
 (use `--show-trace' to show detailed location information)

 Looks like you need to set some variables in configuration.nix.

I'm attempting a Linode installation as documented here:  
http://nixos.org/wiki/Install_NixOS_on_Linode

I have:

# cat /mnt/etc/nixos/configuration.nix
{
   boot.loader.initScript.enable = true;
}
#

I had thought to supplement that, but:

# bash /mnt/nix/store/nixos-prepare-install guess-config
INFO:  /mnt/README-BOOTSTRAP-NIXOS found, assuming your're bootstrapping  
 from an archive. Nix files should be in place
 To realise your NixOS installtion execute:

 run-in-chroot /nix/store/nixos-bootstrap --install -j2 --keep-going
#


 Without --show-trace output, it is hard to give any details..


There's no obvious way to do that:

# bash /mnt/nix/store/run-in-chroot /nix/store/nixos-bootstrap --install  
-j2 --keep-going --show-trace
INFO:  Enable networking: copying /etc/resolv.conf
INFO:  mounting /proc /sys /dev and / to /host-system
/nix/store/nixos-bootstrap: line 8: cat: command not found
INFO:  unmounting /proc /sys /dev and removing /host-system if empty
rmdir: failed to remove `/mnt/host-system': Device or resource busy
#

And although /mnt/README-BOOTSTRAP-NIXOS indicates that --install in the  
command above can be replaced by --help for more information, the output  
is identical to the above.


-- 
-KQ
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] bootstrap failure

2011-11-21 Thread Michael Raskin
On Mon, 21 Nov 2011 22:24:18 -0700, Michael Raskin 7c6f4...@mail.ru  
wrote:

 Anyone know what might be going wrong with the nix-env invocation in the
 bootstrap attempt below?  This was following a bash
 /mnt/nix/store/nixos-prepare-install checkout-sources operation.

 +  
 /nix/store/v8yf6bzqzgfszd3v6q15f100hq6x73yl-nix-1.0pre26015/bin/nix-env
 -p /nix/var/nix/profiles/system -f /etc/nixos/nixos --set -A system -j2
 --keep-going
 error: user-thrown exception: Not defined.
 (use `--show-trace' to show detailed location information)

 Looks like you need to set some variables in configuration.nix.

I'm attempting a Linode installation as documented here:  
http://nixos.org/wiki/Install_NixOS_on_Linode

I have:

# cat /mnt/etc/nixos/configuration.nix
{
   boot.loader.initScript.enable = true;
}
#

I had thought to supplement that, but:

# bash /mnt/nix/store/nixos-prepare-install guess-config
INFO:  /mnt/README-BOOTSTRAP-NIXOS found, assuming your're bootstrapping  
 from an archive. Nix files should be in place
 To realise your NixOS installtion execute:

 run-in-chroot /nix/store/nixos-bootstrap --install -j2 --keep-going
#


 Without --show-trace output, it is hard to give any details..


There's no obvious way to do that:

# bash /mnt/nix/store/run-in-chroot /nix/store/nixos-bootstrap --install  
-j2 --keep-going --show-trace

Maybe you just need to read previous trace and edit the script in-store
and add --show-trace to nix-env invokation manually.



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] bootstrap failure

2011-11-21 Thread Marc Weber
Where did you get the mininmal bootstrapping archive from?
I'm pretty sure its outdated?

i686 or x86_64?

The cat command should show its usage .. 
This all should be fixed in latest version.

Or open the script and patch it ..

You can contact me on irc as well.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] bootstrap failure

2011-11-21 Thread Kevin Quick
On Mon, 21 Nov 2011 22:51:48 -0700, Marc Weber marco-owe...@gmx.de wrote:

 Where did you get the mininmal bootstrapping archive from?
 I'm pretty sure its outdated?

 i686 or x86_64?

The x86_64 image from step 5 on this page:  
http://nixos.org/wiki/Install_NixOS_on_Linode

 The cat command should show its usage ..

The README-BOOTSTRAP-NIXOS there is pretty brief, and the  
nixos-prepare-install is pretty
insistent that the existence of that file means that everything is there  
and ready and that
I should just be running nixos-boostrap via run-in-chroot.

 This all should be fixed in latest version.

I was hoping for this...


 Or open the script and patch it ..

and hoping not to have to do this.  :-)

-KQ

-- 
-KQ
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev