bootstrapfs.git
15 years agoTagging module BootstrapFS - BootstrapFS-1.0-3
Thierry Parmentelat [Mon, 1 Sep 2008 12:33:59 +0000 (12:33 +0000)]
Tagging module BootstrapFS - BootstrapFS-1.0-3
Do not overwrite yumgroups.xml upon updates of noderepo

15 years agowhen dealing with multiple architectures/pldistros/vrefs, it is sometimes necessary...
Thierry Parmentelat [Mon, 1 Sep 2008 10:48:45 +0000 (10:48 +0000)]
when dealing with multiple architectures/pldistros/vrefs, it is sometimes necessary to manually tune yumgroups.xml
the purpose of this change is that yumgroups.xml does not get overwritten by an update of noderepo
on the longer run we might wish to merge yumgroups.xml from (a) rpm and (b) local changes

15 years agoTagging module BootstrapFS - BootstrapFS-1.0-2
Thierry Parmentelat [Thu, 3 Jul 2008 15:08:38 +0000 (15:08 +0000)]
Tagging module BootstrapFS - BootstrapFS-1.0-2
uses the right yum.conf when building images

15 years agoalso need to use mkfedora-yum.conf
Thierry Parmentelat [Thu, 3 Jul 2008 14:58:33 +0000 (14:58 +0000)]
also need to use mkfedora-yum.conf

15 years agoTagging module BootstrapFS - BootstrapFS-1.0-1
Thierry Parmentelat [Mon, 5 May 2008 12:23:44 +0000 (12:23 +0000)]
Tagging module BootstrapFS - BootstrapFS-1.0-1
rpm release tag does not need pldistro as it is already part of the rpm name

15 years agocheck consistency of specfiles:
Thierry Parmentelat [Mon, 5 May 2008 12:09:39 +0000 (12:09 +0000)]
check consistency of specfiles:
* set pldistro in release when needed (Monitor)
* remove it when already part of the rpm name (bootcd, noderepo)

16 years agoTagging module BootstrapFS - BootstrapFS-1.0-0
Thierry Parmentelat [Wed, 26 Mar 2008 09:42:21 +0000 (09:42 +0000)]
Tagging module BootstrapFS - BootstrapFS-1.0-0
naming scheme changed, tarball name now contains ''nodefamily'' as <pldistro>-<arch>
new package named 'noderepo' allows to ship the full set of node rpms to another (arch) myplc

16 years agosupport for multiple slice reference images
Thierry Parmentelat [Fri, 21 Mar 2008 16:35:32 +0000 (16:35 +0000)]
support for multiple slice reference images

* vserver-reference rpm names have changed and become
    vserver-@pldistro@-@fcdistro@-@arch@
    vserver-systemslices-@pldistro@-@fcdistro@-@arch@

* this contains the images located as
   /vservers/.vref/@pldistro@-@fcdistro@-@arch@
and
  /vservers/.vstub/@pldistro@-@fcdistro@-@arch@/planetflow
respectively

* a stamp gets created on the nodes as /etc/planetlab/defaultvref
  that contains the name for the default slicefamily to use

* nodemanager tries to be smart when chosing the right argument to pass to vuseradd
  for this purpose, the argument in 'vref' is taken as a dash-separated list of 'wishes'
  so e.g. is defaultvref is planetlab-f8-x86_64, then we should find for the image name:
vref=i386           -> vuseradd -t planetlab-f8-i386
vref=centos5        -> vuseradd -t planetlab-centos5-x86_64
vref=planetflow     -> vuseradd -t planetflow
vref=centos5-onelab -> vuseradd -t onelab-centos5-x86_64

for legacy reasons, if the stamp is not found, 'default' is taken instead

=== status
* this is only partly tested
* a given node can install several variants of vserver-*
  this would require a manual upload of the rpms into the right install-rpms
  and manual changes in yumgroups.
* next improvement would be to have the system (planetflow) slices have a smarter naming scheme as well
  this way a 'planetflow' vref would rather be rewritten as planetflow-f8-x86_64
  for the time being it is not supported to install several variants of vserver-systemslices
  on the node - although it should be harmless

16 years agofix for fc4: use explicit destination for yumgroups.xml or else 'install' program...
Marc Fiuczynski [Tue, 11 Mar 2008 16:36:51 +0000 (16:36 +0000)]
fix for fc4: use explicit destination for yumgroups.xml or else 'install' program fails

16 years agoclean up the verbosity and messages used while building the bootstrap packages
Marc Fiuczynski [Tue, 11 Mar 2008 16:34:48 +0000 (16:34 +0000)]
clean up the verbosity and messages used while building the bootstrap packages

16 years agoyet another fix
Thierry Parmentelat [Mon, 10 Mar 2008 13:15:50 +0000 (13:15 +0000)]
yet another fix

16 years agoSecond step towards multiarch myplc https://svn.planet-lab.org/ticket/214
Thierry Parmentelat [Mon, 10 Mar 2008 11:45:24 +0000 (11:45 +0000)]
Second step towards multiarch myplc https://svn.planet-lab.org/ticket/214
-- design
* new notion of a 'nodefamily' - that for now is <pldistro>-<arch>
* standard rpm repository is now named /var/www/html/install-rpms/<nodefamily>
  a legacy symlink install-rpms/planetlab is created my myplc packaging
* bootstrafs rpm name is now bootstrapfs-<nodefamily> so that several instances
 from various builds can be installed in the same myplc
* noderepo rpm (named noderepo-<nodefamily>) built as part of the planetlab distro
  this is for installing /var/www/html/intall-rpms/<nodefamily> from another build

-- other changes
* extensive cleanup of mkfedora:
** obsolete  options -p -g -x removed
** option -p removed, pkgsfile is a mandatory argument
** option -k removed, use kexclude: in the pkgs file instead
* also cleaned up pl_root_* functions - no wrapper to pl_root_mkfedora anymore

-- status
* not tested at all - likely to break
* next step planned for storing nodefamily and pass it to yum.php.conf
  (impacted would be bootmanager, nodemanager and nodeconfig)
* a final cleanup in mkfedora would be to define mirrors in a separate .pkgs-like file
* kupdate.sh, as well as possibly other convenience scripts, might be impacted

16 years agocross-module change for multi-arch myplc
Thierry Parmentelat [Sun, 9 Mar 2008 17:18:53 +0000 (17:18 +0000)]
cross-module change for multi-arch myplc

* name of the bootstrap tarball changed into
  bootstrapfs-<id>-<arch>.tar.bz2
    with id=<planetlab-distro> for the main tarball
    and  id=<extension> for the extensions tarballs

* bootmanager to use node's nodegroups to figure the tarball to use

* the noderepo rpm allows to install /var/www/html/install-rpms/<repo>
==
status
* checkpoint version to verify that mono-arch mono-distro still works
* build phase tested
* but some parts are still missing for complete multi-arch behaviour:
* bootstrapfs's rpm name should sontain pldistro and arch (as it is a noarch rpm)
* yum.php.conf also needs tunings

16 years agolet plc.d/packages redo createrepo
Thierry Parmentelat [Tue, 4 Mar 2008 15:16:34 +0000 (15:16 +0000)]
let plc.d/packages redo createrepo

16 years agofix
Thierry Parmentelat [Tue, 4 Mar 2008 14:55:50 +0000 (14:55 +0000)]
fix

16 years agopostinstall for signing pkgs - noderepo requires myplc - using Provides: on the myplc...
Thierry Parmentelat [Tue, 4 Mar 2008 14:51:54 +0000 (14:51 +0000)]
postinstall for signing pkgs - noderepo requires myplc - using Provides: on the myplc* side

16 years agomissing quotes
Thierry Parmentelat [Tue, 4 Mar 2008 14:03:27 +0000 (14:03 +0000)]
missing quotes

16 years agono need to check out build
Thierry Parmentelat [Tue, 4 Mar 2008 13:48:53 +0000 (13:48 +0000)]
no need to check out build

16 years agocross-module name change for more consistency
Thierry Parmentelat [Tue, 4 Mar 2008 13:24:45 +0000 (13:24 +0000)]
cross-module name change for more consistency

16 years agofirst draft of a noderepo package
Thierry Parmentelat [Tue, 4 Mar 2008 12:30:39 +0000 (12:30 +0000)]
first draft of a noderepo package
(probably doesn't work but commit is needed for testing)

purpose is to package all the node-oriented rpms on cross-platform myplc

16 years agofix: yum clean all installroot was pointing at the wrong directory
Marc Fiuczynski [Fri, 22 Feb 2008 20:52:00 +0000 (20:52 +0000)]
fix: yum clean all installroot was pointing at the wrong directory

16 years agominor clean up of code that invokes an optional .post processing script after package...
Marc Fiuczynski [Fri, 22 Feb 2008 20:49:53 +0000 (20:49 +0000)]
minor clean up of code that invokes an optional .post processing script after packages from the specified .pkgs file have been installed

16 years agoget rid of the nullglob
Marc Fiuczynski [Fri, 22 Feb 2008 20:35:28 +0000 (20:35 +0000)]
get rid of the nullglob

16 years agoI meant for that to be vdir at this point in the script
Stephen Soltesz [Wed, 20 Feb 2008 20:31:26 +0000 (20:31 +0000)]
I meant for that to be vdir at this point in the script

16 years agoModified to run config.planetlab/*.post scripts for the various bootstrap pkgs
Stephen Soltesz [Wed, 20 Feb 2008 20:29:51 +0000 (20:29 +0000)]
Modified to run config.planetlab/*.post scripts for the various bootstrap pkgs
files available in cofig.*/bootstrap*.post

16 years agoTagging module BootstrapFS -- from bootstrapfs-0.1-1 to bootstrapfs-0.1-2
Thierry Parmentelat [Fri, 18 Jan 2008 15:59:25 +0000 (15:59 +0000)]
Tagging module BootstrapFS  -- from bootstrapfs-0.1-1 to bootstrapfs-0.1-2
search more carefully for alternate pkgs files
handling of sysconfig/crontab and creation of site_admin reviewed
(this tag is set with module-tag.py)

16 years agoIm not sure what I'm doing but mef says this is how to make these changes.
Faiyaz Ahmed [Thu, 17 Jan 2008 21:45:17 +0000 (21:45 +0000)]
Im not sure what I'm doing but mef says this is how to make these changes.

16 years agofor got $
Marc Fiuczynski [Thu, 10 Jan 2008 19:21:10 +0000 (19:21 +0000)]
for got $

16 years agoWith more care check if there are any pkgs to build.
Marc Fiuczynski [Thu, 10 Jan 2008 19:17:45 +0000 (19:17 +0000)]
With more care check if there are any pkgs to build.

16 years agofor onelab
Thierry Parmentelat [Thu, 10 Jan 2008 16:12:35 +0000 (16:12 +0000)]
for onelab

16 years agoobscure naming confused me. comments inline.
Faiyaz Ahmed [Wed, 9 Jan 2008 17:31:56 +0000 (17:31 +0000)]
obscure naming confused me.  comments inline.

16 years agoready for tagging
Thierry Parmentelat [Tue, 8 Jan 2008 11:49:43 +0000 (11:49 +0000)]
ready for tagging
reviewed URLs and %{plrelease}

16 years agofix typo & repair broken build
Thierry Parmentelat [Sat, 5 Jan 2008 09:58:03 +0000 (09:58 +0000)]
fix typo & repair broken build

16 years agoproduction image was not installed
Thierry Parmentelat [Fri, 4 Jan 2008 23:02:43 +0000 (23:02 +0000)]
production image was not installed

16 years agosyntax error.
Faiyaz Ahmed [Fri, 4 Jan 2008 21:03:11 +0000 (21:03 +0000)]
syntax error.

16 years agocreate site_admin account and disable cron delay.
Faiyaz Ahmed [Thu, 3 Jan 2008 22:12:59 +0000 (22:12 +0000)]
create site_admin account and disable cron delay.

16 years agoDoesn't belong here.
Faiyaz Ahmed [Thu, 3 Jan 2008 21:08:12 +0000 (21:08 +0000)]
Doesn't belong here.

16 years agocommenting off site_admin as it breaks the build
Thierry Parmentelat [Thu, 13 Dec 2007 16:12:10 +0000 (16:12 +0000)]
commenting off site_admin as it breaks the build

16 years agoexpand tabs.
Faiyaz Ahmed [Wed, 12 Dec 2007 21:06:13 +0000 (21:06 +0000)]
expand tabs.

16 years agomoved site admin down so as not to get in the vref. Also disabled 000-delay.cron.
Faiyaz Ahmed [Wed, 12 Dec 2007 21:04:16 +0000 (21:04 +0000)]
moved site admin down so as not to get in the vref.  Also disabled 000-delay.cron.

16 years agoSSH doesn't accept passwords. This looks ok. No password for console access.
Faiyaz Ahmed [Wed, 12 Dec 2007 20:32:32 +0000 (20:32 +0000)]
SSH doesn't accept passwords.  This looks ok.  No password for console access.

16 years agoBad idea. Have to figure out how to make that a console only account.
Faiyaz Ahmed [Wed, 12 Dec 2007 20:22:25 +0000 (20:22 +0000)]
Bad idea.  Have to figure out how to make that a console only account.

16 years agoadd site_admin account
Faiyaz Ahmed [Wed, 12 Dec 2007 20:19:36 +0000 (20:19 +0000)]
add site_admin account

16 years agomissed changes needed after pldistro files have moved in build/config.<pldistro>
Thierry Parmentelat [Wed, 12 Dec 2007 12:00:47 +0000 (12:00 +0000)]
missed changes needed after pldistro files have moved in build/config.<pldistro>

16 years agoRemove unneeded services.
Daniel Hokka Zakrisson [Fri, 7 Dec 2007 16:50:45 +0000 (16:50 +0000)]
Remove unneeded services.

16 years agofix wrong argument passing to pl_root_mkfedora & more strict checking
Thierry Parmentelat [Fri, 7 Dec 2007 15:59:29 +0000 (15:59 +0000)]
fix wrong argument passing to pl_root_mkfedora & more strict checking

16 years agocleaning up the root creation functions and build.common - untested
Thierry Parmentelat [Fri, 7 Dec 2007 12:31:14 +0000 (12:31 +0000)]
cleaning up the root creation functions and build.common - untested

16 years ago(*) groups distro-dependent files in build/config.<distro>
Thierry Parmentelat [Thu, 6 Dec 2007 08:55:20 +0000 (08:55 +0000)]
(*) groups distro-dependent files in build/config.<distro>
(*) renamed .lst files into .pkgs (lst suffix commonly used for other/tmp purposes)
(*) distro-dependent files are (mostly) optional, defaults to planetlab
(*) mkfedora accepts new -f argument : to pass a pkgs file rather than -p .. -g ..
(*) mkfedora supports junk: and precious: in pkgs file
    this is from the former bootcd/prep.sh - to reduce footprint

Notes.
(*) this is untested
(*) mkfedora still supports -x (exclude) on the command line and in pkgs file
    however I suspect this feature is never used
(*) mkfedora is still a separate command - could/should be merged into buld.common
(*) myplc/build.functions could/should be merged into build.common as well

16 years agoprevious change trashed the -k option to mkfedora
Thierry Parmentelat [Wed, 21 Nov 2007 16:57:26 +0000 (16:57 +0000)]
previous change trashed the -k option to mkfedora

16 years agooops - uses new lst parsing in subdir too
Thierry Parmentelat [Wed, 21 Nov 2007 09:51:43 +0000 (09:51 +0000)]
oops - uses new lst parsing in subdir too

16 years agonaming .lst files after pldistro - including the <pldistro>-filesystems directory
Thierry Parmentelat [Wed, 21 Nov 2007 09:31:37 +0000 (09:31 +0000)]
naming .lst files after pldistro - including the <pldistro>-filesystems directory

16 years agoadds group PlanetLab in things to install
Thierry Parmentelat [Tue, 20 Nov 2007 08:33:09 +0000 (08:33 +0000)]
adds group PlanetLab in things to install
at least rpm is required at runtime
the initial purpose of this bootstrap tarball is to speed up installs

16 years agominor cleanup
Marc Fiuczynski [Mon, 12 Nov 2007 14:42:33 +0000 (14:42 +0000)]
minor cleanup

16 years agoeliminate file entry for BootstrapFS in %{_datadir}
Marc Fiuczynski [Thu, 8 Nov 2007 16:36:51 +0000 (16:36 +0000)]
eliminate file entry for BootstrapFS in %{_datadir}

16 years agomove timing comment to the tar operation
Marc Fiuczynski [Thu, 8 Nov 2007 16:34:51 +0000 (16:34 +0000)]
move timing comment to the tar operation

16 years agoIt appears that some rpm is mounting /proc, which is not what we want.
Marc Fiuczynski [Thu, 8 Nov 2007 16:26:08 +0000 (16:26 +0000)]
It appears that some rpm is mounting /proc, which is not what we want.

16 years agofix using the wrong variable names, update comments, and put in some debugging echo...
Marc Fiuczynski [Thu, 8 Nov 2007 16:02:23 +0000 (16:02 +0000)]
fix using the wrong variable names, update comments, and put in some debugging echo statements

16 years ago* call pl_mkfedora directly rather than pl_setup_chroot
Marc Fiuczynski [Thu, 8 Nov 2007 15:52:59 +0000 (15:52 +0000)]
* call pl_mkfedora directly rather than pl_setup_chroot

* use the build.common pl_get{Packages,Groups} functions

16 years agoinclude bash in the base installation of a vserver reference
Marc Fiuczynski [Thu, 8 Nov 2007 15:46:04 +0000 (15:46 +0000)]
include bash in the base installation of a vserver reference

16 years agoneed to pushd/popd to the BootstrapFS module
Marc Fiuczynski [Thu, 8 Nov 2007 15:35:30 +0000 (15:35 +0000)]
need to pushd/popd to the BootstrapFS module

16 years agofixed typo
Marc Fiuczynski [Thu, 8 Nov 2007 15:35:08 +0000 (15:35 +0000)]
fixed typo

16 years ago* use pl_getPackages and pl_getGroups functions from build.common
Marc Fiuczynski [Wed, 7 Nov 2007 21:01:27 +0000 (21:01 +0000)]
* use pl_getPackages and pl_getGroups functions from build.common

* "clean all" the yum cache of the base vserver reference image

16 years agoSupport to build bootstrap filesystems (i.e. PlanetLab-Bootstrap*.tar.bz2)
Marc Fiuczynski [Tue, 6 Nov 2007 20:49:33 +0000 (20:49 +0000)]
Support to build bootstrap filesystems (i.e. PlanetLab-Bootstrap*.tar.bz2)

16 years agorenamed bootstrap-filesystem -> bootstrap-filesystems
Marc Fiuczynski [Tue, 6 Nov 2007 20:42:36 +0000 (20:42 +0000)]
renamed bootstrap-filesystem -> bootstrap-filesystems

16 years agosubdir to keep the package definitons for PlanetLab-Bootstrap*.tar.bz2 files
Marc Fiuczynski [Tue, 6 Nov 2007 20:39:39 +0000 (20:39 +0000)]
subdir to keep the package definitons for PlanetLab-Bootstrap*.tar.bz2 files

16 years agoFollowing PlanetLab convention for managing our source code.
Marc Fiuczynski [Tue, 6 Nov 2007 20:37:22 +0000 (20:37 +0000)]
Following PlanetLab convention for managing our source code.