- continue to install boot server certs in /mnt/cdrom/bootme for
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 12 Jul 2006 16:15:04 +0000 (16:15 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 12 Jul 2006 16:15:04 +0000 (16:15 +0000)
  backward compatibility with old vserver-reference images

source/steps/InstallBootstrapRPM.py

index c8baead..56ebc09 100644 (file)
@@ -172,6 +172,11 @@ def Run( vars, log ):
         file(SYSIMG_PATH + "/usr/boot/boot_server", "w").write(boot_server)
         shutil.copy("/usr/bootme/pubring.gpg", SYSIMG_PATH + "/usr/boot/pubring.gpg")
         
+    # For backward compatibility
+    if os.path.exists("/usr/bootme"):
+        utils.makedirs(SYSIMG_PATH + "/mnt/cdrom")
+        shutil.copytree("/usr/bootme", SYSIMG_PATH + "/mnt/cdrom/bootme")
+
     # Import the GPG key into the RPM database so that RPMS can be verified
     utils.makedirs(SYSIMG_PATH + "/etc/pki/rpm-gpg")
     utils.sysexec("gpg --homedir=/root --export --armor" \