diff options
Diffstat (limited to 'iurt2')
-rwxr-xr-x | iurt2 | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 } |