+#!/usr/bin/python2
+
+# Copyright (c) 2003 Intel Corporation
+# All rights reserved.
+#
+# Copyright (c) 2004-2006 The Trustees of Princeton University
+# All rights reserved.
+
+
"""
Various functions that are used to allow the boot manager to run on various
different cds are included here
import string
import os, sys
+from Exceptions import *
import utils
import BootServerRequest
Expect the following variables to be set:
TEMP_PATH somewhere to store what we need to run
BOOT_CD_VERSION A tuple of the current bootcd version
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
+ SUPPORT_FILE_DIR directory on the boot servers containing
scripts and support files
LVM_SETUP_2X_CD indicates if lvm is downloaded and setup for 2.x cds
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
+ if SUPPORT_FILE_DIR == None:
+ raise ValueError, "SUPPORT_FILE_DIR"
except KeyError, var:
raise BootManagerException, "Missing variable in vars: %s\n" % var
# download and extract support tarball for this step,
# which has everything we need to successfully run
step_support_file= "alpina-BootLVM.tar.gz"
- source_file= "%s/%s" % (ALPINA_SERVER_DIR,step_support_file)
+ source_file= "%s/%s" % (SUPPORT_FILE_DIR,step_support_file)
dest_file= "%s/%s" % (TEMP_PATH, step_support_file)
log.write( "Downloading support file for this step\n" )
Expect the following variables to be set:
TEMP_PATH somewhere to store what we need to run
BOOT_CD_VERSION A tuple of the current bootcd version
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
+ SUPPORT_FILE_DIR directory on the boot servers containing
scripts and support files
PARTDISKS_SETUP_2X_CD indicates if lvm is downloaded and setup for 2.x cds
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
+ SUPPORT_FILE_DIR= vars["SUPPORT_FILE_DIR"]
+ if SUPPORT_FILE_DIR == None:
+ raise ValueError, "SUPPORT_FILE_DIR"
except KeyError, var:
raise BootManagerException, "Missing variable in vars: %s\n" % var
# download and extract support tarball for this step,
# which has everything we need to successfully run
step_support_file= "alpina-PartDisks.tar.gz"
- source_file= "%s/%s" % (ALPINA_SERVER_DIR,step_support_file)
+ source_file= "%s/%s" % (SUPPORT_FILE_DIR,step_support_file)
dest_file= "%s/%s" % (TEMP_PATH, step_support_file)
log.write( "Downloading support file for this step\n" )