From 99767c21cd13296f0260b9221e7ae83efcffb19a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 12 Jul 2006 16:15:04 +0000 Subject: [PATCH] - continue to install boot server certs in /mnt/cdrom/bootme for backward compatibility with old vserver-reference images --- source/steps/InstallBootstrapRPM.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/steps/InstallBootstrapRPM.py b/source/steps/InstallBootstrapRPM.py index c8baead..56ebc09 100644 --- a/source/steps/InstallBootstrapRPM.py +++ b/source/steps/InstallBootstrapRPM.py @@ -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" \ -- 2.43.0