35 lines
616 B
Bash
Executable File
35 lines
616 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
DIR=${1}
|
|
IMG=${2}
|
|
|
|
jigdo-gen-md5-list ${DIR} > ${IMG}.md5
|
|
|
|
xorriso \
|
|
-as mkisofs \
|
|
-o ${IMG}.iso \
|
|
-R -V 'TEST_1' \
|
|
-partition_offset 16 \
|
|
-J -joliet-long \
|
|
\
|
|
-jigdo-template-compress gzip \
|
|
-checksum_algorithm_iso md5,sha512 \
|
|
-checksum_algorithm_template md5,sha512 \
|
|
-jigdo-jigdo ${IMG}.jigdo \
|
|
-jigdo-template ${IMG}.template \
|
|
-jigdo-map Debian=${DIR} \
|
|
-md5-list ${IMG}.md5 \
|
|
-jigdo-min-file-size 1024 \
|
|
\
|
|
${DIR}
|
|
|
|
jigit-mkimage \
|
|
-t ${IMG}.template \
|
|
-j ${IMG}.jigdo \
|
|
-m Debian=${DIR} \
|
|
-o ${IMG}.bak
|
|
|
|
diff ${IMG}.iso ${IMG}.bak
|