From 957e38f9e34a1656323ad947a02e22e4691f6e7d Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Thu, 10 Feb 2011 10:28:15 +0000 Subject: add chroot_media and chroot_media_exclude parameter --- BCD/Common.pm | 3 +++ BCD/Media.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'BCD') diff --git a/BCD/Common.pm b/BCD/Common.pm index c5a71ae..126c207 100644 --- a/BCD/Common.pm +++ b/BCD/Common.pm @@ -56,6 +56,9 @@ $NB_FORK or print_color("You must define the tag",$color) and exit 1; $version or print_color("You must define the ", $color) and exit 1; $repo or print_color("You must define the tag",$color) and exit 1; $based_on or print_color("You must define the tag",$color) and exit 1; +$isoconf->{chroot_media} or print_color("Now you must define in the conf.xml file",$color) and exit 1; +$isoconf->{chroot_media_exclude} or print_color("Now you must define in the conf.xml file",$color) and exit 1; + # password file #"/home/plop/.signature.gpg"; diff --git a/BCD/Media.pm b/BCD/Media.pm index aa50fad..86d38ec 100644 --- a/BCD/Media.pm +++ b/BCD/Media.pm @@ -251,7 +251,7 @@ sub mini_chroot { my $cmd = "LC_ALL=C sudo urpmi --quiet --no-suggests --auto --no-verify-rpm --use-distrib $repo/$based_on/$arch --urpmi-root $chroot_path"; # sudo urpmi --no-verify-rpm --auto --urpmi-root /tmp/mk --use-distrib /mnt/BIG/dis/2009.0/i586/ basesystem-minimal urpmi --test # - system("LC_ALL=C sudo urpmi --test --no-suggests --auto --no-verify-rpm --use-distrib $repo/$based_on/$arch --urpmi-root /tmp/$isoconf->{nameid}-$version-$isoconf->{arch} --media 'Main,Main Updates' --excludemedia 'Main Testing,Main Backports' urpmi basesystem-minimal bash basesystem > $chroot_path/$isoconf->{tocopy_file}_TODO_chroot"); + system("LC_ALL=C sudo urpmi --test --no-suggests --auto --no-verify-rpm --use-distrib $repo/$based_on/$arch --urpmi-root /tmp/$isoconf->{nameid}-$version-$isoconf->{arch} --media '$isoconf->{chroot_media}' --excludemedia '$isoconf->{chroot_media_exclude}' urpmi basesystem-minimal bash basesystem > $chroot_path/$isoconf->{tocopy_file}_TODO_chroot"); # install all those file to be able to use urpmi.XXXXXX system("LC_ALL=C $cmd --prefer $DISTRIB,$THEME urpmi bash"); system("sudo chroot $chroot_path mkdir -p $distrib_path"); -- cgit v1.2.1