[Nix-dev] Re: [Nix-commits] SVN commit: nix - r23483 - in nix/branches/sqlite: scripts src/libstore src/libutil
Eelco Dolstra
e.dolstra at tudelft.nl
Fri Aug 27 17:05:16 CEST 2010
Hi,
On 08/27/2010 04:46 PM, Lluís Batlle i Rossell wrote:
>>> I think of the case where a nix derivation has to create an image (squashfs,
>>> ubifs, ...) with devices, and only 'root' can run 'mknod'.
>>
>> Note that mksquashfs allows device nodes to be specified on the command line or
>> in a file, so you don't need to be root.
> The kernel has a similar tool for cpio files.
> I'll have to search for a similar feature for ubifs. Maybe it's there.
Another approach is to use pkgs.vmTools.runInLinuxVM. We use it to build Amazon
images (an ext3 image, actually):
https://svn.nixos.org/repos/nix/nixos/trunk/modules/virtualisation/amazon-image.nix
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
More information about the nix-dev
mailing list