X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInitializeBootManager.py;h=c916cfd67d6601cf0c418946570e700008acbe03;hb=ae73c450bffe036dccf37e8d96a4b655c3cd900e;hp=24abbb43228da8a4a1030620ae6e151a4929da50;hpb=ea2b4123414dbbf8666810f4d1cc467a813e4718;p=bootmanager.git diff --git a/source/steps/InitializeBootManager.py b/source/steps/InitializeBootManager.py index 24abbb4..c916cfd 100644 --- a/source/steps/InitializeBootManager.py +++ b/source/steps/InitializeBootManager.py @@ -1,3 +1,11 @@ +#!/usr/bin/python2 + +# Copyright (c) 2003 Intel Corporation +# All rights reserved. +# +# Copyright (c) 2004-2006 The Trustees of Princeton University +# All rights reserved. + import os import xmlrpclib import socket @@ -24,12 +32,24 @@ def Run( vars, log ): hardware setup (to fix old cd problems) Sets the following variables: - BOOT_CD_VERSION A two number tuple of the boot cd version + PARTITIONS A dictionary of generic partition types and their + associated devices. + BOOT_CD_VERSION A two number tuple of the boot cd version """ log.write( "\n\nStep: Initializing the BootManager.\n" ) - + # define the basic partition paths + PARTITIONS= {} + PARTITIONS["root"]= "/dev/planetlab/root" + PARTITIONS["swap"]= "/dev/planetlab/swap" + PARTITIONS["vservers"]= "/dev/planetlab/vservers" + # Linux 2.6 mounts LVM with device mapper + PARTITIONS["mapper-root"]= "/dev/mapper/planetlab-root" + PARTITIONS["mapper-swap"]= "/dev/mapper/planetlab-swap" + PARTITIONS["mapper-vservers"]= "/dev/mapper/planetlab-vservers" + vars["PARTITIONS"]= PARTITIONS + log.write( "Opening connection to API server\n" ) try: api_inst= xmlrpclib.Server( vars['BOOT_API_SERVER'], verbose=0 )