vserver-reference.git
16 years agoThis change creates a proper vserver stub that includes all new files
Marc Fiuczynski [Mon, 5 Nov 2007 16:14:48 +0000 (16:14 +0000)]
This change creates a proper vserver stub that includes all new files
AND modified files.  The previous implementation only handled the
former.

16 years agouser cpio rather than rsync to copy directories
Marc Fiuczynski [Mon, 5 Nov 2007 16:11:39 +0000 (16:11 +0000)]
user cpio rather than rsync to copy directories

16 years agoSet requires for system-packages sub package to be >= the current version
Marc Fiuczynski [Mon, 5 Nov 2007 02:24:41 +0000 (02:24 +0000)]
Set requires for system-packages sub package to be >= the current version

16 years agoThe changeset revamps the vserver-reference package by changing the
Marc Fiuczynski [Fri, 2 Nov 2007 21:37:24 +0000 (21:37 +0000)]
The changeset revamps the vserver-reference package by changing the
way system vservers -- such as planetflow -- are built.

The old model involved copying the appropriate rpms required for, say,
planetflow to the systems-packages directory.  Upon boot the
vserver-init script then construct the reference vserver for
planetflow from those rpms.

The new model creates the reference vserver at build time, reduces it
disk footprint to just the newly installed packages for the system
vserver, and places that into the /vservers/.vstub directory (e.g.,
/vservers/.vstub/planetflow).  Upon boot the vserver-init script then
simply merges the default vserver reference with this stub to create a
/vservers/.vref/planetflow directory.

One can define new system vservers by simply creating a .lst file in
the reference-vservers/ directory.  See the planetflow.lst file as an
example.

16 years agoappend to log file; use logrotate;
Marc Fiuczynski [Fri, 2 Nov 2007 14:53:27 +0000 (14:53 +0000)]
append to log file; use logrotate;

16 years agoAdd in filesystem package explicitly.
Marc Fiuczynski [Mon, 15 Oct 2007 16:29:50 +0000 (16:29 +0000)]
Add in filesystem package explicitly.

16 years agoModule has been renamed from vserver-reference to VserverReference. Update the pushd...
Marc Fiuczynski [Sun, 14 Oct 2007 18:16:59 +0000 (18:16 +0000)]
Module has been renamed from vserver-reference to VserverReference.  Update the pushd to VserverReference.

16 years agobump build
Faiyaz Ahmed [Fri, 7 Sep 2007 19:17:45 +0000 (19:17 +0000)]
bump build

16 years agos/jre-somejunk/jre
Faiyaz Ahmed [Fri, 7 Sep 2007 19:11:38 +0000 (19:11 +0000)]
s/jre-somejunk/jre

16 years agoadded jre... :-(
Faiyaz Ahmed [Thu, 6 Sep 2007 20:41:23 +0000 (20:41 +0000)]
added jre... :-(

16 years agouse build/build.common functions
Marc Fiuczynski [Fri, 31 Aug 2007 02:29:35 +0000 (02:29 +0000)]
use build/build.common functions

16 years agorely on build/build.common to pick default fedora release correctly
Marc Fiuczynski [Fri, 31 Aug 2007 02:27:55 +0000 (02:27 +0000)]
rely on build/build.common to pick default fedora release correctly

16 years agofix to selecting Fedora release number
Marc Fiuczynski [Tue, 28 Aug 2007 21:39:20 +0000 (21:39 +0000)]
fix to selecting Fedora release number

16 years agomake Fedora 7 compatible
Marc Fiuczynski [Fri, 24 Aug 2007 06:21:04 +0000 (06:21 +0000)]
make Fedora 7 compatible

16 years agomore debugging output
Marc Fiuczynski [Fri, 24 Aug 2007 06:06:04 +0000 (06:06 +0000)]
more debugging output

16 years agoFedora 7 does not pull in findutils via a dependency
Marc Fiuczynski [Fri, 24 Aug 2007 05:50:54 +0000 (05:50 +0000)]
Fedora 7 does not pull in findutils via a dependency

16 years agodefault to FC4 if we cannot figure out Fedora version
Marc Fiuczynski [Fri, 24 Aug 2007 04:43:06 +0000 (04:43 +0000)]
default to FC4 if we cannot figure out Fedora version

16 years agochanged code that figures out which Fedora version we are running on
Marc Fiuczynski [Fri, 24 Aug 2007 04:40:48 +0000 (04:40 +0000)]
changed code that figures out which Fedora version we are running on

16 years agoBump version
Faiyaz Ahmed [Mon, 20 Aug 2007 20:15:20 +0000 (20:15 +0000)]
Bump version

16 years agoBump minor version
Faiyaz Ahmed [Mon, 13 Aug 2007 20:34:46 +0000 (20:34 +0000)]
Bump minor version

16 years agoFix version / revision.
Faiyaz Ahmed [Mon, 13 Aug 2007 20:04:39 +0000 (20:04 +0000)]
Fix version / revision.

16 years agonix binaries from cvs. kthnxbi
Faiyaz Ahmed [Mon, 13 Aug 2007 18:06:51 +0000 (18:06 +0000)]
nix binaries from cvs.  kthnxbi

16 years agoRemove java rpm from module. Moved to repo.
Faiyaz Ahmed [Mon, 13 Aug 2007 18:02:33 +0000 (18:02 +0000)]
Remove java rpm from module.  Moved to repo.

16 years agoInstall java in the reference image.
David E. Eisenstat [Mon, 25 Jun 2007 19:52:27 +0000 (19:52 +0000)]
Install java in the reference image.

16 years agoJava RPM.
David E. Eisenstat [Mon, 25 Jun 2007 19:46:34 +0000 (19:46 +0000)]
Java RPM.

16 years agoAdd "which".
David E. Eisenstat [Mon, 25 Jun 2007 19:40:01 +0000 (19:40 +0000)]
Add "which".

17 years agoinvoke build.sh with fedora core release argument
Marc Fiuczynski [Thu, 8 Mar 2007 17:54:12 +0000 (17:54 +0000)]
invoke build.sh with fedora core release argument

17 years agodo not dereference symlinks when chowning files back to the SUDO_USER
Mark Huang [Wed, 17 Jan 2007 22:44:17 +0000 (22:44 +0000)]
do not dereference symlinks when chowning files back to the SUDO_USER

17 years ago- move vserver-reference to .vref/default
Mark Huang [Mon, 13 Nov 2006 19:04:16 +0000 (19:04 +0000)]
- move vserver-reference to .vref/default

17 years ago- build planetflow reference type
Mark Huang [Mon, 13 Nov 2006 19:00:01 +0000 (19:00 +0000)]
- build planetflow reference type

17 years ago- move vserver-reference to .vref/default
Mark Huang [Mon, 13 Nov 2006 18:59:32 +0000 (18:59 +0000)]
- move vserver-reference to .vref/default
- remove pl_conf

17 years ago- remove stale rpm locks on startup
Mark Huang [Thu, 10 Aug 2006 18:49:16 +0000 (18:49 +0000)]
- remove stale rpm locks on startup

17 years agonow building mysql locally, no longer require third party mysql repository
Mark Huang [Sat, 1 Jul 2006 18:13:31 +0000 (18:13 +0000)]
now building mysql locally, no longer require third party mysql repository

17 years ago- build FC4 based VServer Reference by default
Mark Huang [Mon, 15 May 2006 21:16:41 +0000 (21:16 +0000)]
- build FC4 based VServer Reference by default

17 years agoupdate configuration files and GPG keys in reference images and system slices daily
Mark Huang [Tue, 9 May 2006 22:22:40 +0000 (22:22 +0000)]
update configuration files and GPG keys in reference images and system slices daily

17 years ago- fix how GPG keys are pushed into the reference images
Mark Huang [Tue, 9 May 2006 16:45:28 +0000 (16:45 +0000)]
- fix how GPG keys are pushed into the reference images

17 years ago- also copy Fedora signing key to reference images
Mark Huang [Mon, 8 May 2006 20:52:30 +0000 (20:52 +0000)]
- also copy Fedora signing key to reference images

17 years ago- treat system slices (pl_*) as reference images in that their
Mark Huang [Mon, 8 May 2006 20:33:02 +0000 (20:33 +0000)]
- treat system slices (pl_*) as reference images in that their
  configuration files should always be updated
- expect boot server certificate to be in /usr/boot/ (Boot
  Manager will put it here soon); copy boot server certificate to
  /usr/boot/ in the reference image

18 years ago- bump release number
Mark Huang [Mon, 1 May 2006 21:31:51 +0000 (21:31 +0000)]
- bump release number

18 years ago- also update cached reference images
Mark Huang [Mon, 1 May 2006 21:30:30 +0000 (21:30 +0000)]
- also update cached reference images
- install /etc/planetlab/plc_config* files if present
- install boot server certificate in location specified by plc_config
  variable PLC_BOOT_SSL_CRT

18 years ago- move coreutils to Requires(pre)
Mark Huang [Tue, 11 Apr 2006 15:04:47 +0000 (15:04 +0000)]
- move coreutils to Requires(pre)

18 years ago- fix for FC4 yum
Mark Huang [Mon, 10 Apr 2006 22:21:48 +0000 (22:21 +0000)]
- fix for FC4 yum
- always try and download and record the package dependency so that we
  can be re-run
- skip blank lines to avoid segfaulting grep

18 years ago- bump version to 4.0
Mark Huang [Mon, 10 Apr 2006 20:38:28 +0000 (20:38 +0000)]
- bump version to 4.0

18 years ago- build FC4 reference image
Mark Huang [Mon, 10 Apr 2006 20:38:03 +0000 (20:38 +0000)]
- build FC4 reference image

18 years ago- specify -k to mkfedora so that FC4 kernel* packages don't get installed
Mark Huang [Mon, 10 Apr 2006 20:37:41 +0000 (20:37 +0000)]
- specify -k to mkfedora so that FC4 kernel* packages don't get installed

18 years agoadd necessary Requires: coreutils
Mark Huang [Wed, 5 Apr 2006 21:29:11 +0000 (21:29 +0000)]
add necessary Requires: coreutils

18 years ago- create new package vserver-system-packages that contain the packages
Mark Huang [Wed, 5 Apr 2006 20:32:28 +0000 (20:32 +0000)]
- create new package vserver-system-packages that contain the packages
  necessary to bootstrap pl_conf and pl_netflow

18 years ago- fix typo
Mark Huang [Wed, 5 Apr 2006 19:41:20 +0000 (19:41 +0000)]
- fix typo

18 years ago- clean /dev after building
Mark Huang [Wed, 5 Apr 2006 19:35:22 +0000 (19:35 +0000)]
- clean /dev after building

18 years agoisolate all the sudo stuff in %clean
Mark Huang [Mon, 3 Apr 2006 19:27:28 +0000 (19:27 +0000)]
isolate all the sudo stuff in %clean

18 years ago- fix comment
Mark Huang [Fri, 31 Mar 2006 21:38:07 +0000 (21:38 +0000)]
- fix comment

18 years ago- disable all services in vserver-reference image
Mark Huang [Fri, 31 Mar 2006 21:18:10 +0000 (21:18 +0000)]
- disable all services in vserver-reference image

18 years ago- change to vserver-reference directory before building/installing
Mark Huang [Thu, 30 Mar 2006 16:45:07 +0000 (16:45 +0000)]
- change to vserver-reference directory before building/installing

18 years ago- do not tolerate errors
Mark Huang [Wed, 29 Mar 2006 20:26:41 +0000 (20:26 +0000)]
- do not tolerate errors

18 years ago- move vserver-reference group definition into this script instead of
Mark Huang [Wed, 29 Mar 2006 19:19:55 +0000 (19:19 +0000)]
- move vserver-reference group definition into this script instead of
  relying upon it living in the yumgroups.xml file

18 years ago- build vserver-reference using mkfedora script
Mark Huang [Wed, 29 Mar 2006 17:08:45 +0000 (17:08 +0000)]
- build vserver-reference using mkfedora script

18 years ago- run createrepo as well
Mark Huang [Tue, 21 Mar 2006 14:57:29 +0000 (14:57 +0000)]
- run createrepo as well
- if run under sudo, allow user to delete the headers/ and repodata/
  directories

18 years ago- run yum-arch on Bootstrap RPMS directory before using
Mark Huang [Fri, 10 Mar 2006 18:20:34 +0000 (18:20 +0000)]
- run yum-arch on Bootstrap RPMS directory before using

18 years ago- Some temporary cdroot files like /var/empty/sshd and
Mark Huang [Mon, 9 Jan 2006 21:40:28 +0000 (21:40 +0000)]
- Some temporary cdroot files like /var/empty/sshd and
  /usr/bin/sudo get created with non-readable permissions.

18 years agosupport pldistro "variants"
Mark Huang [Thu, 15 Dec 2005 16:50:39 +0000 (16:50 +0000)]
support pldistro "variants"

18 years ago- fix /var/run/vcached.pid generation
Mark Huang [Wed, 26 Oct 2005 17:54:31 +0000 (17:54 +0000)]
- fix /var/run/vcached.pid generation

18 years ago- use a valid node_id
Mark Huang [Sat, 1 Oct 2005 18:20:08 +0000 (18:20 +0000)]
- use a valid node_id

18 years ago- also copy /etc/planetlab/node_id
Mark Huang [Wed, 14 Sep 2005 17:23:25 +0000 (17:23 +0000)]
- also copy /etc/planetlab/node_id

18 years ago- execute new build script
Mark Huang [Sat, 3 Sep 2005 21:49:03 +0000 (21:49 +0000)]
- execute new build script
- move most of %post script back to SysVInit script

18 years ago- change back to SysVInit script that updates a few configuration files
Mark Huang [Sat, 3 Sep 2005 21:48:30 +0000 (21:48 +0000)]
- change back to SysVInit script that updates a few configuration files
  in /vservers/vserver-reference from the host. Replicates a bit of the
  functionality of Boot Manager.

18 years agoSolve the bootstrap problem by including any just built packages in
Mark Huang [Sat, 3 Sep 2005 21:44:16 +0000 (21:44 +0000)]
Solve the bootstrap problem by including any just built packages in
the yum configuration. This cooperates with the PlanetLab build
system.

18 years ago- get yum.conf from boot, not www
Mark Huang [Fri, 2 Sep 2005 19:46:37 +0000 (19:46 +0000)]
- get yum.conf from boot, not www
- use better check for whether RPMS exist to freshen

18 years ago- be quiet in the curl request
Mark Huang [Fri, 2 Sep 2005 15:21:00 +0000 (15:21 +0000)]
- be quiet in the curl request

18 years ago- Get the URL for the production /etc/yum.conf file
Mark Huang [Fri, 2 Sep 2005 01:43:49 +0000 (01:43 +0000)]
- Get the URL for the production /etc/yum.conf file

18 years ago- %post: update packages and populate header cache
Mark Huang [Thu, 1 Sep 2005 23:12:19 +0000 (23:12 +0000)]
- %post: update packages and populate header cache

18 years ago- If run under sudo, allow user to delete the built RPM
Mark Huang [Thu, 1 Sep 2005 18:56:47 +0000 (18:56 +0000)]
- If run under sudo, allow user to delete the built RPM
- Stop vcached, delete the old reference image, and empty the cache
  before installing a new version; restart vcached after installing
- make sure /vservers is mode 0000
- make sure the reference image has an /etc/planetlab directory before
  trying to install in it

18 years ago- add another comment about yum requirements
Mark Huang [Thu, 1 Sep 2005 18:55:11 +0000 (18:55 +0000)]
- add another comment about yum requirements

18 years ago- chkconfig may not be in a regular user's PATH
Mark Huang [Thu, 1 Sep 2005 17:51:26 +0000 (17:51 +0000)]
- chkconfig may not be in a regular user's PATH

18 years ago- chkconfig may not be in a regular user's PATH
Mark Huang [Thu, 1 Sep 2005 17:39:55 +0000 (17:39 +0000)]
- chkconfig may not be in a regular user's PATH

18 years ago- If run under sudo, allow user to delete the build directory
Mark Huang [Thu, 1 Sep 2005 17:36:54 +0000 (17:36 +0000)]
- If run under sudo, allow user to delete the build directory

18 years ago- chroot may not be in a regular user's PATH
Mark Huang [Thu, 1 Sep 2005 17:20:03 +0000 (17:20 +0000)]
- chroot may not be in a regular user's PATH

18 years ago- exit with an error code if something fails
Mark Huang [Thu, 1 Sep 2005 17:17:14 +0000 (17:17 +0000)]
- exit with an error code if something fails

18 years ago- Pre-package vserver-reference instead of building it on nodes
Mark Huang [Thu, 1 Sep 2005 17:08:50 +0000 (17:08 +0000)]
- Pre-package vserver-reference instead of building it on nodes

19 years ago- /dev: make a symlink to /proc/self/fd so that bash process
Mark Huang [Thu, 31 Mar 2005 22:34:42 +0000 (22:34 +0000)]
- /dev: make a symlink to /proc/self/fd so that bash process
  substitution works

19 years ago- bump release number
Mark Huang [Tue, 30 Nov 2004 18:24:02 +0000 (18:24 +0000)]
- bump release number

19 years ago- PL3118 and PL3131 fix: set barrier bit on /vservers instead of old
Mark Huang [Mon, 29 Nov 2004 20:19:13 +0000 (20:19 +0000)]
- PL3118 and PL3131 fix: set barrier bit on /vservers instead of old
  immulink bit. Do not reset the immutable bit on the new
  vserver-reference directory when deleting it after an error.

19 years ago- back out previous checkin; getting weird errors if I do this on some
Mark Huang [Wed, 17 Nov 2004 22:54:19 +0000 (22:54 +0000)]
- back out previous checkin; getting weird errors if I do this on some
  vuseradd invocations. Sigh.

19 years ago- remove stale rpm locks from reference image after building
Mark Huang [Wed, 17 Nov 2004 22:50:04 +0000 (22:50 +0000)]
- remove stale rpm locks from reference image after building

19 years ago- bump release to install Fedora Core 2 updates as of Tue Nov 9 2004
Mark Huang [Mon, 15 Nov 2004 19:27:49 +0000 (19:27 +0000)]
- bump release to install Fedora Core 2 updates as of Tue Nov  9 2004
- PL3017 fix: rebuild vserver-reference image in case it was built
  with i386 glibc

19 years agobump release number
Mark Huang [Thu, 4 Nov 2004 18:11:59 +0000 (18:11 +0000)]
bump release number

19 years ago- write a fake mtab so that df works
Mark Huang [Fri, 29 Oct 2004 20:29:13 +0000 (20:29 +0000)]
- write a fake mtab so that df works

19 years agochange URL to repository location
Mark Huang [Wed, 27 Oct 2004 15:11:41 +0000 (15:11 +0000)]
change URL to repository location

19 years ago- dump stdout/stderr to a log file /var/log/vserver-reference.log so we
Mark Huang [Wed, 20 Oct 2004 19:55:41 +0000 (19:55 +0000)]
- dump stdout/stderr to a log file /var/log/vserver-reference.log so we
  can debug when vserver-reference init fails

19 years ago- start earlier (after ssh but before pl_conf, pl_nm, vcached, and
Mark Huang [Thu, 14 Oct 2004 18:37:40 +0000 (18:37 +0000)]
- start earlier (after ssh but before pl_conf, pl_nm, vcached, and
  vservers)

19 years ago- move functionality into /etc/init.d/vserver-reference, which runs once
Mark Huang [Thu, 14 Oct 2004 18:25:05 +0000 (18:25 +0000)]
- move functionality into /etc/init.d/vserver-reference, which runs once
after installation (and maybe again if the RPM is ever updated, but the
script is mostly idempotent).

19 years ago- PL2437 fix: build new vserver-reference image in /vservers/.vtmp, then
Mark Huang [Wed, 13 Oct 2004 04:53:07 +0000 (04:53 +0000)]
- PL2437 fix: build new vserver-reference image in /vservers/.vtmp, then
  swap with /vservers/vserver-reference only when done. Bail and clean
  up on any error.

19 years agoreference image now dynamically built
Mark Huang [Mon, 11 Oct 2004 04:25:17 +0000 (04:25 +0000)]
reference image now dynamically built

19 years ago- dynamically construct reference image on the target machine in a %post
Mark Huang [Mon, 11 Oct 2004 04:24:42 +0000 (04:24 +0000)]
- dynamically construct reference image on the target machine in a %post
  scriplet, instead of building it on the build machine. This solves a
  couple of problems:

  1. RPM databases constructed on a RH9 machine could be corrupt on a
     FC2 machine because of the LD_ASSUME_KERNEL rpm/glibc NPTL bug.
  2. vserver-reference is no longer a 50 MB download. The reference
     image can be installed from the localhost yum cache most of the
     time.

  But introduces a couple of problems:

  1. If the %post scriplet fails, the whole installation fails
     with a warning, but without an error. Not having a complete
     vserver-reference build is a bad thing.
  2. Must zap RPM and YUM locks while installing.

19 years ago- escape % correctly
Mark Huang [Sun, 10 Oct 2004 23:17:51 +0000 (23:17 +0000)]
- escape % correctly

19 years ago- RPM is too $#%@! stupid to understand bash here documents and tries
Mark Huang [Thu, 7 Oct 2004 17:10:06 +0000 (17:10 +0000)]
- RPM is too $#%@! stupid to understand bash here documents and tries
  too hard to expand macros

19 years ago- set __file_context_path to /dev/null avoid stupid SELinux warning
Mark Huang [Thu, 7 Oct 2004 16:59:24 +0000 (16:59 +0000)]
- set __file_context_path to /dev/null avoid stupid SELinux warning

19 years ago- bootstrap: freshen any RPMs within the VServer reference image, with
Mark Huang [Tue, 5 Oct 2004 14:58:15 +0000 (14:58 +0000)]
- bootstrap: freshen any RPMs within the VServer reference image, with
  RPMs that just got built at the same time as the vserver-reference RPM
  itself

19 years ago- exclude docs installation by default
Mark Huang [Thu, 23 Sep 2004 15:10:54 +0000 (15:10 +0000)]
- exclude docs installation by default

19 years ago- sudo: make sure the original user can remove the generated files
Mark Huang [Mon, 20 Sep 2004 05:12:27 +0000 (05:12 +0000)]
- sudo: make sure the original user can remove the generated files

19 years ago- don't install alpha RPMs in the vserver-reference image
Mark Huang [Sat, 18 Sep 2004 21:09:40 +0000 (21:09 +0000)]
- don't install alpha RPMs in the vserver-reference image