aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2006-01-06 15:50:07 +0000
committerFlorent Villard <warly@mandriva.com>2006-01-06 15:50:07 +0000
commit74c69d40d245199435f3263e56cbd73f4d82cc08 (patch)
tree0681d5fd0b95081d3fea8945568c463e872a9b11 /iurt2
parent7a6194c24d910adddd513733d8cd0a14d82e039a (diff)
downloadiurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar
iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar.gz
iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar.bz2
iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar.xz
iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.zip
Use the right chroot in unionfs mode
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt210
1 files changed, 7 insertions, 3 deletions
diff --git a/iurt2 b/iurt2
index ad78503..dc0f389 100755
--- a/iurt2
+++ b/iurt2
@@ -262,7 +262,8 @@ if (!$nocheckchroot) {
die => 1);
if ($unionfs) {
- clean_chroot($chroot) or die "FATAL iurt: Could no prepare initial chroot"
+ clean_chroot($chroot) or die "FATAL iurt: Could no prepare initial chroot";
+ $chroot = "$config->{local_home}/unionfs$debug_tag"
}
}
@@ -301,9 +302,9 @@ foreach (my $i ; $i < @todo; $i++) {
mkdir "$d";
}
system(qq{sudo mount -t tmpfs none $home/tmpfs}) and die "FATAL iurt: could not mount $home/tmpfs ($!)";
- system(qq{sudo mount -o dirs=$home/tmpfs=rw:$home/chroot/=ro -t unionfs unionfs $home/unionfs}) and die "FATAL iurt: could not mount $home/tmpfs and $home/chroot with unionfs ($!)";
+ system(qq{sudo mount -o dirs=$home/tmpfs=rw:$home/chroot=ro -t unionfs unionfs $home/unionfs}) and die "FATAL iurt: could not mount $home/tmpfs and $home/chroot with unionfs ($!)";
} else {
- print "iurt: installing a new chroot for $srpm in $chroot\n";
+ print STDERR "iurt: installing a new chroot for $srpm in $chroot\n";
clean_chroot($chroot)
}
my ($srpm_name) = $srpm =~ /(.*)-[^-]+-[^-]+\.src\.rpm$/ or next;
@@ -433,6 +434,9 @@ sub usage {
--debug: Compile one package in debug mode (do not send mail, create
chroot_debug directory). This mode can be used on a system
where a iurt is already running.
+ --unionfs: Use a tmpfs mounted with the chroot via unionfs as build chroot.
+ This is much faster but you need some memory.
+ --nocheckchroot: start building without the inital check of the chroot.
";
exit
}