Abort mkarchiso if isolinux.cfg is not found.

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2009-12-02 02:35:26 -03:00
parent 4d1fb6a58d
commit 5f8999e3ea

View File

@ -218,14 +218,17 @@ _imgcommon () {
echo "Removing existing bootable image..."
rm -rf "${imgname}"
else
echo "error: Image '${imgname}' already exists, aborting."
echo "Error: Image '${imgname}' already exists, aborting."
exit 1
fi
fi
cp "${work_dir}/isomounts" "${work_dir}/iso/"
[ -f ${work_dir}/iso/boot/isolinux/isolinux.cfg ] && sed "s|archisolabel=[^ ]*|archisolabel=${LABEL}|" -i ${work_dir}/iso/boot/isolinux/isolinux.cfg
if ! sed "s|archisolabel=[^ ]*|archisolabel=${LABEL}|" -i ${work_dir}/iso/boot/isolinux/isolinux.cfg; then
echo "Error: ${work_dir}/iso/boot/isolinux/isolinux.cfg, doesn't exist, aborting."
exit 1
fi
}
command_iso () {