From b62a9f269e53e0a20fda8c9b9d602af049e7fda9 Mon Sep 17 00:00:00 2001 From: George Danchev Date: Wed, 22 Jun 2011 20:20:00 +0000 Subject: [PATCH] build a compound xorriso cmdline, on demand --- releng/releng_build_jigdo | 54 +++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/releng/releng_build_jigdo b/releng/releng_build_jigdo index 3b70ccd5..eaa5ccb4 100755 --- a/releng/releng_build_jigdo +++ b/releng/releng_build_jigdo @@ -15,32 +15,52 @@ RES="${IMG}.iso ${IMG}.new ${IMG}.md5 ${IMG}.jigdo ${IMG}.template" # remove cruft from previous runs # rm -f ${RES} +# create FAT partition +# /sbin/mkfs.msdos -n Bla -C test.fat 8192 + +# create MD5 list in base64 format jigdo-gen-md5-list ${DIR} > ${IMG}.md5 -${XOR} \ - -as mkisofs \ - -o ${IMG}.iso \ - -R -V 'ISO_JIGDO' \ - -partition_offset 16 \ - -J -joliet-long \ - \ - -jigdo-template-compress gzip \ - -checksum_algorithm_iso md5,sha1,sha256,sha512 \ - -checksum_algorithm_template md5,sha1,sha256,sha512 \ - -jigdo-jigdo ${IMG}.jigdo \ - -jigdo-template ${IMG}.template \ - -jigdo-map Debian=${DIR} \ - -md5-list ${IMG}.md5 \ - -jigdo-min-file-size 1024 \ - \ - ${DIR} +# build the command - general section +CMD="${XOR} \ + -as mkisofs \ + -o ${IMG}.iso \ + -R \ + -V ISOJIGDO \ + -partition_offset 16 \ + -J -joliet-long \ +" +# boot section +#if [ "${4}" ]; then +#CMD+= +#fi +# jigdo section +CMD+="\ + -jigdo-template-compress gzip \ + -checksum_algorithm_iso md5,sha1,sha256,sha512 \ + -checksum_algorithm_template md5,sha1,sha256,sha512 \ + -jigdo-jigdo ${IMG}.jigdo \ + -jigdo-template ${IMG}.template \ + -jigdo-map Debian=${DIR} \ + -md5-list ${IMG}.md5 \ + -jigdo-min-file-size 1024 \ +" + +CMD+="${DIR}" + +# run it +echo -e "$0: creating iso & jigdo representations:\n$CMD\n" +${CMD} + +# create another one from jigdo files jigit-mkimage \ -t ${IMG}.template \ -j ${IMG}.jigdo \ -m Debian=${DIR} \ -o ${IMG}.new +# diff'em diff ${IMG}.iso ${IMG}.new # sort out the cruft