Commit 73978665 authored by Alessandro Elias's avatar Alessandro Elias
Browse files

Refator to make work.


Signed-off-by: Alessandro Elias's avatarAlessandro Elias <ae11@c3sl.ufpr.br>
parent 5f877874
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA. # USA.
set -x
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
echo You must have more power to run this script echo You must have more power to run this script
exit -1 exit -1
...@@ -48,7 +46,7 @@ LOG_FILE="${LOG_PATH}/create-iso-${TIME_STAMP}.log" ...@@ -48,7 +46,7 @@ LOG_FILE="${LOG_PATH}/create-iso-${TIME_STAMP}.log"
mkdir -p ${TMP} mkdir -p ${TMP}
sudo apt-get install syslinux squashfs-tools genisoimage xorriso \ sudo apt-get install isolinux syslinux squashfs-tools genisoimage xorriso \
|| log ERROR "Failed to install basic tools: \"${_DIST}\"" || log ERROR "Failed to install basic tools: \"${_DIST}\""
for file in $(ls ${SCRIPTSDIR}); do for file in $(ls ${SCRIPTSDIR}); do
...@@ -75,15 +73,15 @@ for file in $(ls ${SCRIPTSDIR}); do ...@@ -75,15 +73,15 @@ for file in $(ls ${SCRIPTSDIR}); do
fi fi
fi fi
done done
set -x
NAME="LinuxEducacional6-$(echo ${_DIST} | cut -d'/' -f2).iso" NAME="LinuxEducacional6-$(echo ${_DIST} | cut -d'/' -f2).iso"
cd ${TMP}/image cd ${TMP}/image
sudo xorriso -as mkisofs -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -no-emul-boot -isohybrid-gpt-basdat -o ${PREFIX}/iso/${_DIST}/${NAME} \
xorriso -as mkisofs -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -c isolinux/boot.cat -b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -no-emul-boot -isohybrid-gpt-basdat -o ${PREFIX}/iso/${NAME} \
. ||\ . ||\
log ERROR "Failed to generate iso image." log ERROR "Failed to generate iso image."
cd - cd -
cleanTmpFiles cleanTmpFiles
exit 0 exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment