- echo "setup basic networking files"
- cp -f $CONF_FILES_DIR/hosts $CD_ROOT/etc/
-
- echo "copying sysctl.conf (fix tcp window scaling and broken routers)"
- cp -f $CONF_FILES_DIR/sysctl.conf $CD_ROOT/etc/
-
- echo "setup default network conf file"
- mkdir -p $CD_ROOT/usr/boot
- cp -f $CONF_FILES_DIR/default-net.cnf $CD_ROOT/usr/boot/
-
- echo "setup boot server configuration"
- cp -f $CURRENT_CONFIG_DIR/$PRIMARY_SERVER_CERT $CD_ROOT/usr/boot/cacert.pem
- cp -f $CURRENT_CONFIG_DIR/$PRIMARY_SERVER_GPG $CD_ROOT/usr/boot/pubring.gpg
- echo "$PRIMARY_SERVER" > $CD_ROOT/usr/boot/boot_server
- echo "$PRIMARY_SERVER_PORT" > $CD_ROOT/usr/boot/boot_server_port
- echo "$PRIMARY_SERVER_PATH" > $CD_ROOT/usr/boot/boot_server_path
-
- echo "setup backup boot server configuration"
- mkdir -p $CD_ROOT/usr/boot/backup
- cp -f $CURRENT_CONFIG_DIR/$BACKUP_SERVER_CERT \
- $CD_ROOT/usr/boot/backup/cacert.pem
- cp -f $CURRENT_CONFIG_DIR/$BACKUP_SERVER_GPG \
- $CD_ROOT/usr/boot/backup/pubring.gpg
- echo "$BACKUP_SERVER" > $CD_ROOT/usr/boot/backup/boot_server
- echo "$BACKUP_SERVER_PORT" > $CD_ROOT/usr/boot/backup/boot_server_port
- echo "$BACKUP_SERVER_PATH" > $CD_ROOT/usr/boot/backup/boot_server_path
-
- echo "copying old boot cd directory bootme (TEMPORARY)"
- cp -r bootme_old $CD_ROOT/usr/bootme
- echo "$FULL_VERSION_STRING" > $CD_ROOT/usr/bootme/ID
- echo "$PRIMARY_SERVER" > $CD_ROOT/usr/bootme/BOOTSERVER
- echo "$PRIMARY_SERVER" > $CD_ROOT/usr/bootme/BOOTSERVER_IP
- echo "$PRIMARY_SERVER_PORT" > $CD_ROOT/usr/bootme/BOOTPORT
-
- echo "copying cacert to old boot cd directory bootme (TEMPORARY)"
- mkdir -p $CD_ROOT/usr/bootme/cacert/$PRIMARY_SERVER/
- cp -f $CURRENT_CONFIG_DIR/$PRIMARY_SERVER_CERT \
- $CD_ROOT/usr/bootme/cacert/$PRIMARY_SERVER/cacert.pem
-
- 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/
- echo "$FULL_VERSION_STRING" > $CD_ROOT/usr/isolinux/message.txt
-
- echo "writing /etc/issue"
- echo "$FULL_VERSION_STRING" > $CD_ROOT/etc/issue
- echo "Kernel \r on an \m" >> $CD_ROOT/etc/issue
- echo "" >> $CD_ROOT/etc/issue
- echo "" >> $CD_ROOT/etc/issue
-
- if [[ ! -z "$NODE_CONFIGURATION_FILE" ]]; then
- echo "Copying node configuration file to cd"
- cp -f $CURRENT_CONFIG_DIR/$NODE_CONFIGURATION_FILE \
- $CD_ROOT/usr/boot/plnode.txt
+ [ -n "$IS_SERIAL" ] && KERNEL_ARGS="$KERNEL_ARGS ${console_spec}"
+
+ # tmp: should be restricted to f15 nodes and above
+ # making sure the network interfaces are still numbered eth0 and above
+ KERNEL_ARGS="$KERNEL_ARGS biosdevname=0"
+ # this apparently is required instead (or in addition to) starting with f29
+ KERNEL_ARGS="$KERNEL_ARGS net.ifnames=0"
+ # making sure selinux is turned off - somehow this is needed with lxc/f14
+ KERNEL_ARGS="$KERNEL_ARGS selinux=0"
+ # add any debug flag if any (defined in the header of this script)
+ KERNEL_ARGS="$KERNEL_ARGS $KERNEL_DEBUG_ARGS"
+ # propagate kernel args for later boot stages
+ [ -n "$KERNEL_ARGS" ] && echo "$KERNEL_ARGS" > $OVERLAY/kargs.txt
+
+ # Pack overlay files into a compressed archive
+ echo "* Compressing overlay image"
+ (cd $OVERLAY && find . | cpio --quiet -c -o) | gzip -9 >$ISOFS/overlay.img
+
+ rm -rf $OVERLAY
+ pop_cleanup
+
+ if [ -n "$CUSTOM_DIR" ]; then
+ echo "* Compressing custom image"
+ (cd "$CUSTOM_DIR" && find . | cpio --quiet -c -o) | gzip -9 >$ISOFS/custom.img