diff options
author | Florent Villard <warly@mandriva.com> | 2006-01-06 15:50:07 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-01-06 15:50:07 +0000 |
commit | 74c69d40d245199435f3263e56cbd73f4d82cc08 (patch) | |
tree | 0681d5fd0b95081d3fea8945568c463e872a9b11 | |
parent | 7a6194c24d910adddd513733d8cd0a14d82e039a (diff) | |
download | iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar.gz iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar.bz2 iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.tar.xz iurt-74c69d40d245199435f3263e56cbd73f4d82cc08.zip |
Use the right chroot in unionfs mode
-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 } |