[Planetlab-devel] myplc-devel

Mark Huang mlhuang at CS.Princeton.EDU
Thu Jul 6 10:42:54 EDT 2006


Renault John wrote:
> If you can provide us a script that perform 1a -> 2b -> 3b  
> automatically, I'll be more then satisfied.

Checked in at build/mkbuild. Check out the build directory:

cvs -d :pserver:anon at cvs.planet-lab.org:/cvs checkout build
cd build

Run the mkbuild script as root. It requires yum, so you must run it on a Red Hat 
or a Fedora Core system. If you give it a directory name as an argument:

mkbuild /path/to/chroot/jail

Then it will install a build environment in that chroot jail. If you do not give 
it a directory name:

mkbuild

It will simply try to upgrade your current system (using yum). I've tested this 
path with a minimal Fedora Core 4 installation. You may specify a preferred 
mirror to use using the "-l" option:

mkbuild -l \
http://coblitz.planet-lab.org/pub/fedora/linux

Future builds of PlanetLab, which require access to a Fedora Core 4 repository, 
will use the specified mirror.

file:// URIs are acceptable as well. However, if you are installing into a 
chroot jail, you will have to bind mount the path into the chroot jail yourself, 
e.g.,

mount -o bind,ro \
/usr/share/mirrors/fedora \
/path/to/chroot/jail/usr/share/mirrors/fedora

Note that, as of this time, I haven't written a chroot initialization script for 
this environment like that of MyPLC's. If you choose to install into a chroot 
jail, remember to mount /proc inside of it before entering the chroot and 
attempting to start a build:

mount -t proc none /path/to/chroot/jail/proc

The script takes a snapshot of the PlanetLab sources and re-imports the snapshot 
into /cvs. You may specify a preferred tag to export using the "-t" option:

mkbuild -t myplc-0_4-rc1

To actually execute a build, checkout the build directory *from your private 
/cvs tree* and type "make":

cvs -d /cvs checkout build
cd build
make

Feedback appreciated. I'm tagging sources now.

--Mark
PlanetLab Operations



More information about the Devel mailing list