[Nix-dev] Stuck on "Install NixOS on Linode" - bootstrap archives download
Daniel Clark
dclark at pobox.com
Sun Jul 4 17:14:10 CEST 2010
On Sun, Jul 4, 2010 at 5:34 AM, Marc Weber <marco-oweber at gmx.de> wrote:
> If you run checkout-sources you should have seen a log like this (my mountPoint is /tmp/foo):
>
> [root at nixos:/tmp/foo]# nix/store/nixos-prepare-install --dir-ok checkout-sources
> INFO: /tmp/foo/README-BOOTSTRAP-NIXOS found, assuming your're bootstrapping from an archive. Nix files should be in place
> INFO: checking out nixpkgs
> Error validating server certificate for 'https://svn.nixos.org:443':
> - The certificate is not issued by a trusted authority. Use the
> fingerprint to validate the certificate manually!
> Certificate information:
> - Hostname: buildfarm.st.ewi.tudelft.nl
> - Valid: from Thu, 24 Apr 2008 08:26:54 GMT until Sun, 09 Sep 2035 08:26:54 GMT
> - Issuer: Software Technology, Delft University of Technology, Delft, South Holland, NL
> - Fingerprint: 6c:60:5d:df:a2:fb:a2:3e:ea:d5:65:52:1e:e3:11:89:b2:c3:25:06
> (R)eject, accept (t)emporarily or accept (p)ermanently? p
> A /tmp/foo/etc/nixos/nixpkgs/default.nix
> A /tmp/foo/etc/nixos/nixpkgs/pkgs
> A /tmp/foo/etc/nixos/nixpkgs/pkgs/test
> A /tmp/foo/etc/nixos/nixpkgs/pkgs/test/openftd
> A /tmp/foo/etc/nixos/nixpkgs/pkgs/test/openftd/default.nix
> A /tmp/foo/etc/nixos/nixpkgs/pkgs/test/mkOption
> A /tmp/foo/etc/nixos/nixpkgs/pkgs/test/mkOption/keep.ref
I did see all this.
> After that you should have the directories $mountPoint/etc/nixos/{nixos,nixpkgs}.
>
> Cat you copy paste ouput of ls -l /etc/nixos/ ?
(boostrapping, so this is actually /mnt/etc/nixos; currently booted OS
is Debian so there is no /etc/nixos/)
li127-226:~# ls -l /mnt/etc/nixos/
total 12
-rw-r--r-- 1 root root 0 Jul 4 01:10 0
-rw-r--r-- 1 root root 45 Jul 4 01:07 configuration.nix
drwxr-xr-x 9 root root 4096 Jul 4 00:44 nixos
drwxr-xr-x 6 root root 4096 Jul 4 00:44 nixpkgs
> The assertion still fails. So you should comment on whether those directories
> exist (and contain some .nix files) or not.
The assertion for configuration.nix doesn't fail any more.
> So maybe you missed
> export mountPoint=/mnt
Nope, that looks fine
> before running $mountPoint/nix/store/nixos-prepare-install checkout-sources
As far as I can tell the checkout-sources went fine; the problem now
seems to be that on this command:
bash /mnt/nix/store/run-in-chroot "/nix/store/nixos-bootstrap \
--install -j2 --keep-going
The nix $PATH isn't set up properly, so no binaries other than sh (eg
"cat") can be found.
If it'd be useful I can do a typescript of the entire process from the
beginning again.
--
\|/ Daniel JB Clark | Activist; Owner
FREEDOM -+-> INCLUDED ~ http://freedomincluded.com
/|\ Free Software respecting hardware
More information about the nix-dev
mailing list