-# Parse PLC configuration
-if [ -r /etc/planetlab/plc_config ] ; then
- . /etc/planetlab/plc_config
-else
- PLC_NAME="PlanetLab"
- PLC_BOOT_HOST="boot.planet-lab.org"
- PLC_BOOT_SSL_CRT="/etc/planetlab/boot_ssl.crt"
-fi
-
-CACERT=/mnt/cdrom/bootme/cacert/$PLC_BOOT_HOST/cacert.pem
-if [ -r $CACERT ] ; then
- for vroot in $VROOTS ; do
- # Install boot server certificate
- install -D -m 644 $CACERT $vroot/$PLC_BOOT_SSL_CRT
+# Old versions of the Boot Manager copied portions of the Boot CD to
+# /mnt/cdrom/bootme, to support old scripts which assumed that the
+# Boot CD was mounted even in production mode. Now, it just copies it
+# to /usr/boot/cacert.pem. In any case, copy the boot server
+# certificate to the place(s) where BootServerRequest expects to find
+# it (/usr/boot/cacert.pem by default, /mnt/cdrom/bootme in old
+# versions).
+CACERT="/usr/boot/cacert.pem /mnt/cdrom/bootme/cacert/$PLC_BOOT_HOST/cacert.pem"
+for cacert in $CACERT ; do
+ if [ -r $cacert ] ; then
+ for vroot in $VROOTS ; do
+ # Install boot server certificate
+ install -D -m 644 $cacert $vroot/usr/boot/cacert.pem
+ echo $PLC_BOOT_HOST > $vroot/usr/boot/boot_server