#!/bin/bash # set an empty root password chroot ${CDCHROOTDIR} passwd -d root # stop here if the user don't want to create the install tarball [[ ! -z ${SKIP_CREATE_INSTALL_TARBALL} ]] && exit 0 ## # create the install tarball ## install -d ${LIVECDROOT}/install-temp install -d ${CDISOROOT}/system # use all settings from the global config, but the basesystem # has to be the normal install basesystem not for livecds mage-bootstrap \ --root ${LIVECDROOT}/install-temp \ --profile ${MAGE_PROFILE} \ --magerc ${MAGERC} \ --toolchain ${TOOLCHAIN} \ --basesystem basesystem-mcore # create tarball ( cd ${LIVECDROOT}/install-temp; tar cvjpf ${CDISOROOT}/system/mcore.tar.bz2 ./ | tee log) # create images.conf echo "CDIMAGENAME=mcore.tar.bz2" > ${CDISOROOT}/system/images.conf echo "TOTALLINES=$(wc -l ${LIVECDROOT}/install-temp/log | cut -d' ' -f1)" >> ${CDISOROOT}/system/images.conf # clean up if [[ -d ${LIVECDROOT}/install-temp ]] then rm -rf ${LIVECDROOT}/install-temp fi