Abort mkarchiso if isolinux.cfg is not found.
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
4d1fb6a58d
commit
5f8999e3ea
@ -218,14 +218,17 @@ _imgcommon () {
|
|||||||
echo "Removing existing bootable image..."
|
echo "Removing existing bootable image..."
|
||||||
rm -rf "${imgname}"
|
rm -rf "${imgname}"
|
||||||
else
|
else
|
||||||
echo "error: Image '${imgname}' already exists, aborting."
|
echo "Error: Image '${imgname}' already exists, aborting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp "${work_dir}/isomounts" "${work_dir}/iso/"
|
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 () {
|
command_iso () {
|
||||||
|
Loading…
Reference in New Issue
Block a user