From: Thierry Parmentelat Date: Thu, 3 Jul 2008 21:03:40 +0000 (+0000) Subject: first attempt for https://svn.planet-lab.org/ticket/342 X-Git-Tag: MyPLC-4.2-16~4 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=c35d739cde31ff2691fdd05099f08d7c0aee02fe first attempt for https://svn.planet-lab.org/ticket/342 --- diff --git a/build-native.sh b/build-native.sh index 6594cba..bc4930b 100755 --- a/build-native.sh +++ b/build-native.sh @@ -60,13 +60,6 @@ echo "* myplc: Installing configuration file" install -D -m 444 default_config.xml ${tmpdir}/etc/planetlab/default_config.xml install -D -m 444 plc_config.dtd ${tmpdir}/etc/planetlab/plc_config.dtd -# Initialize node RPMs directory. The PlanetLab-Bootstrap.tar.bz2 -# tarball already contains all of the node RPMs pre-installed. Only -# updates or optional packages should be placed in this directory. -nodefamily=${pldistro}-${pl_DISTRO_ARCH} -install -D -m 644 $pl_DISTRO_YUMGROUPS \ - ${tmpdir}/var/www/html/install-rpms/$nodefamily/yumgroups.xml -# temporary - so that node update still work until yum.conf.php gets fixed -( cd ${tmpdir}/var/www/html/install-rpms ; ln -s $nodefamily planetlab) +# yumgroups.xml and yum repo : let noderepo handle that exit 0 diff --git a/build.sh b/build.sh index 4a2c6d2..ffedd41 100755 --- a/build.sh +++ b/build.sh @@ -127,14 +127,7 @@ pl_fixtmp_permissions data # Remove generated bootmanager script rm -f data/var/www/html/boot/bootmanager.sh -# Initialize node RPMs directory. The PlanetLab-Bootstrap.tar.bz2 -# tarball already contains all of the node RPMs pre-installed. Only -# updates or optional packages should be placed in this directory. -nodefamily=${pldistro}-${pl_DISTRO_ARCH} -install -D -m 644 $pl_DISTRO_YUMGROUPS \ - data/var/www/html/install-rpms/$nodefamily/yumgroups.xml -# temporary - so that node update still work until yum.conf.php gets fixed -( cd data/var/www/html/install-rpms ; ln -s $nodefamily planetlab) +# yumgroups.xml and yum repo : let noderepo handle that # Make image out of directory echo "* myplc: Building loopback image" diff --git a/db-config b/db-config index 08c3434..ba9b0be 100755 --- a/db-config +++ b/db-config @@ -170,16 +170,34 @@ def main(): # YUM configuration {'enabled': True, - 'source': 'PlanetLabConf/yum.conf.php?gpgcheck=1', + 'source': 'PlanetLabConf/f8/yum.conf', 'dest': '/etc/yum.conf', - 'file_permissions': '644', - 'file_owner': 'root', - 'file_group': 'root', - 'preinstall_cmd': '', - 'postinstall_cmd': '', - 'error_cmd': '', + 'file_permissions': '644', 'file_owner': 'root', 'file_group': 'root', + 'preinstall_cmd': '', 'postinstall_cmd': '', 'error_cmd': '', + 'ignore_cmd_errors': False, + 'always_update': False}, + {'enabled': True, + 'source': 'PlanetLabConf/myplc.repo.php?gpgcheck=1', + 'dest': '/etc/yum.myplc.d/myplc.repo', + 'file_permissions': '644', 'file_owner': 'root', 'file_group': 'root', + 'preinstall_cmd': '', 'postinstall_cmd': '', 'error_cmd': '', + 'ignore_cmd_errors': False, + 'always_update': False}, + {'enabled': True, + 'source': 'PlanetLabConf/f8/yum.myplc.d/fedora.repo', + 'dest': '/etc/yum.myplc.d/fedora.repo', + 'file_permissions': '644', 'file_owner': 'root', 'file_group': 'root', + 'preinstall_cmd': '', 'postinstall_cmd': '', 'error_cmd': '', 'ignore_cmd_errors': False, 'always_update': False}, + {'enabled': True, + 'source': 'PlanetLabConf/f8/yum.myplc.d/fedora-updates.repo', + 'dest': '/etc/yum.myplc.d/fedora-updates.repo', + 'file_permissions': '644', 'file_owner': 'root', 'file_group': 'root', + 'preinstall_cmd': '', 'postinstall_cmd': '', 'error_cmd': '', + 'ignore_cmd_errors': False, + 'always_update': False}, + {'enabled': True, 'source': 'PlanetLabConf/delete-rpm-list-production', 'dest': '/etc/planetlab/delete-rpm-list',