remove blank=fast from burn command
[bootcd.git] / build.sh
index 62630e9..d71cd45 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -2,9 +2,18 @@
 
 set -e
 
-BOOTCD_VERSION="3.0"
+BOOTCD_VERSION="3.0-beta0.1"
 FULL_VERSION_STRING="PlanetLab BootCD $BOOTCD_VERSION"
 
+# which boot server to contact
+BOOTSERVER='boot.planet-lab.org'
+
+# and on which port (protocol will be https)
+BOOTSERVER_PORT='443'
+
+# finally, what path to request from the server
+BOOTSERVER_PATH='boot/'
+
 SYSLINUX_SRC=sources/syslinux-2.11.tar.bz2
 
 ISO=cd.iso
@@ -14,7 +23,7 @@ ROOT_PASSWD='$1$IdEn2srw$/TfrjZSPUC1xP244YCuIi0'
 
 BOOTCD_YUM_GROUP=BootCD
 
-CDRECORD_FLAGS="-v -dao -blank=fast"
+CDRECORD_FLAGS="-v -dao"
 
 CONF_FILES_DIR=conf_files/
 
@@ -126,7 +135,20 @@ function build_initrd()
 
     echo "setup default network conf file"
     mkdir -p $CD_ROOT/usr/boot
-    cp -f $CONF_FILES_DIR/default-net.cnf $CD_ROOT/usr/boot
+    cp -f $CONF_FILES_DIR/default-net.cnf $CD_ROOT/usr/boot/
+
+    echo "setup boot server configuration"
+    cp -f $CONF_FILES_DIR/cacert.pem $CD_ROOT/usr/boot/
+    cp -f $CONF_FILES_DIR/pubring.gpg $CD_ROOT/usr/boot/
+    echo "$BOOTSERVER" > $CD_ROOT/usr/boot/boot_server
+    echo "$BOOTSERVER_PORT" > $CD_ROOT/usr/boot/boot_server_port
+    echo "$BOOTSERVER_PATH" > $CD_ROOT/usr/boot/boot_server_path
+
+    echo "copying old boot cd directory bootme (TEMPORARY)"
+    cp -r bootme_old $CD_ROOT/usr/bootme
+
+    echo "forcing lvm to make lvm1 partitions (TEMPORARY)"
+    cp -f $CONF_FILES_DIR/lvm.conf $CD_ROOT/etc/lvm/
 
     echo "copying isolinux configuration files"
     cp -f $CONF_FILES_DIR/isolinux.cfg $CD_ROOT/usr/isolinux/