[Nix-dev] Creating offline installation image

James Cook james.cook at utoronto.ca
Sun Mar 29 01:14:23 CET 2015


(For the list: a GitHub issue to track this.)

On 28 March 2015 at 17:12, Arseniy Seroka <ars.seroka at gmail.com> wrote:
> Issue: https://github.com/NixOS/nixpkgs/issues/7059
>
> 2015-03-29 3:04 GMT+03:00 James Cook <james.cook at utoronto.ca>:
>>
>> Sorry you are having trouble. I'm going to wait to see if anyone more
>> knowledgeable chimes in. If you're really eager to debug it yourself,
>> I would start by looking at the source for generating the installation
>> CD (and possibly the source to nixos-install), to see where it finds
>> nixpkgs, and then try to build an installation CD where both versions
>> match.
>>
>> Otherwise feel free to ping me in a day or two and I'll take another
>> look.  (Also, I think it would also make sense to file a bug on
>> GitHub.)
>>
>> James
>>
>> On 28 March 2015 at 16:51, Arseniy Seroka <ars.seroka at gmail.com> wrote:
>> > Anyway, I still don't know how to do my task :(
>> >
>> > 2015-03-29 2:46 GMT+03:00 James Cook <james.cook at utoronto.ca>:
>> >>
>> >> If the versions are not too far apart, then it's possible for only a
>> >> few store hashes to change.
>> >>
>> >> James
>> >>
>> >> On 28 March 2015 at 16:45, Arseniy Seroka <ars.seroka at gmail.com> wrote:
>> >> > I think that if they are different, many things will have different
>> >> > hash.
>> >> > But as I can see, lot's of store's elements were already copied.
>> >> >
>> >> > 2015-03-29 2:37 GMT+03:00 James Cook <jcook at cs.berkeley.edu>:
>> >> >>
>> >> >> On 28 March 2015 at 13:47, Arseniy Seroka <ars.seroka at gmail.com>
>> >> >> wrote:
>> >> >> > My installation-cd-minimal.nix [1]
>> >> >> >
>> >> >> > What I do:
>> >> >> >
>> >> >> > Running qemu with generated image
>> >> >> > Checking that I can run vlc, teamviewer, dropbox, openbox etc
>> >> >> > (also
>> >> >> > Xserver
>> >> >> > is running)
>> >> >> > Making partition on hard drive
>> >> >> > Mounting to /mnt
>> >> >> > Editing /mnt/etc/nixos/configuration.nix to [2]
>> >> >> > Running nixos-install
>> >> >> >
>> >> >> > What I'm getting [3]
>> >> >> >
>> >> >> > Adding to installation-cd-minimal.nix
>> >> >> >    xlibs.xf86videovmware
>> >> >> >    xlibs.xf86videovesa
>> >> >> >    xlibs.xf86videointel
>> >> >> >    xlibs.xf86videoati
>> >> >> > doesn't affect installation.
>> >> >> >
>> >> >> > Ideas? :-(
>> >> >> >
>> >> >> > [1] https://gist.github.com/jagajaga/b41475f097b0e0b58865
>> >> >> > [2] https://gist.github.com/jagajaga/b91cb0deb04042dbd40f
>> >> >> > [3] https://gist.github.com/jagajaga/2a78535bdb9bb6c53b2a
>> >> >>
>> >> >> Could the nixpkgs version used to generate the installation image be
>> >> >> different from the nixpkgs version used by nixos-install?  I don't
>> >> >> know how the second one is determined; I guess it gets copied from
>> >> >> somewhere when you generate the image.
>> >> >>
>> >> >> James
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Sincerely,
>> >> > Arseniy Seroka
>> >
>> >
>> >
>> >
>> > --
>> > Sincerely,
>> > Arseniy Seroka
>
>
>
>
> --
> Sincerely,
> Arseniy Seroka


More information about the nix-dev mailing list