summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-05-16 19:29:31 +0000
committerOlivier Blin <oblin@mandriva.com>2007-05-16 19:29:31 +0000
commitdf0edf72b94f3323336222e147c3b4bb4f1c0e2d (patch)
tree70f4a7ec3fc940d7856074d22c70e74d23231731
parentaeadd6cb6573d422ef9648af90d257d06934ce67 (diff)
downloaddraklive-df0edf72b94f3323336222e147c3b4bb4f1c0e2d.tar
draklive-df0edf72b94f3323336222e147c3b4bb4f1c0e2d.tar.gz
draklive-df0edf72b94f3323336222e147c3b4bb4f1c0e2d.tar.bz2
draklive-df0edf72b94f3323336222e147c3b4bb4f1c0e2d.tar.xz
draklive-df0edf72b94f3323336222e147c3b4bb4f1c0e2d.zip
allow to build squashfs with prefix different from chroot
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index b3c179c..25a66ed 100755
--- a/draklive
+++ b/draklive
@@ -187,7 +187,7 @@ my %loop = (
my ($live, $dir) = @_;
my $dest = get_builddir($live) . $live->{prefix}{build}{loopbacks} . '/' . $dir->{location};
mkdir_p(dirname($dest));
- my $root = get_system_root($live);
+ my $root = $dir->{root} || get_system_root($live);
my $src = $root . $dir->{build_from};
my $total = directory_usage($src);
print "have to process " . int($total/1000000) . " MB\n";