From c2fe94783d8fcd141e4cbf8038b877e206926640 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 2 Oct 2009 09:11:42 +0000 Subject: [PATCH] svn path=/nixpkgs/trunk/; revision=17588 --- pkgs/build-support/vm/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index a7cb6f6ad26..98ea6bc89e7 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -530,7 +530,7 @@ rec { buildCommand = '' ${createRootFS} - PATH=$PATH:${dpkg}/bin:${dpkg}/sbin:${glibc}/sbin + PATH=$PATH:${dpkg}/bin:${dpkg}/sbin:${glibc}/sbin:${lzma}/bin # Unpack the .debs. We do this to prevent pre-install scripts # (which have lots of circular dependencies) from barfing. @@ -546,7 +546,7 @@ rec { # Make the Nix store available in /mnt, because that's where the .debs live. mkdir -p /mnt/inst/nix/store ${klibcShrunk}/bin/mount -o bind /nix/store /mnt/inst/nix/store - + ${klibcShrunk}/bin/mount -o bind /proc /mnt/proc ${klibcShrunk}/bin/mount -o bind /dev /mnt/dev # Misc. files/directories assumed by various packages. @@ -584,6 +584,7 @@ rec { rm /mnt/.debug ${klibcShrunk}/bin/umount /mnt/inst/nix/store + ${klibcShrunk}/bin/umount /mnt/proc ${klibcShrunk}/bin/umount /mnt/dev ${klibcShrunk}/bin/umount /mnt '';