summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2017-11-20 22:20:47 +0100
committerRaphaël Hertzog <hertzog@debian.org>2017-11-20 22:20:53 +0100
commit9f3e5fe8d968f79fbd1f4c60fb6b020758fe8510 (patch)
tree5b71be7b53e0939a06728e2f8b9bf5a9713d0cd7 /scripts/build
parentdae94463e4c2df83e6a31d58b82c6502f70190a1 (diff)
downloadvyos-live-build-9f3e5fe8d968f79fbd1f4c60fb6b020758fe8510.tar.gz
vyos-live-build-9f3e5fe8d968f79fbd1f4c60fb6b020758fe8510.zip
Fix the way the .disk/mkisofs file is created
Thanks to Daniel Reichelt <debian@nachtgeist.net> for the patch. Closes: #881941
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/binary_iso6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/binary_iso b/scripts/build/binary_iso
index 6ddb9dd09..1ca460c02 100755
--- a/scripts/build/binary_iso
+++ b/scripts/build/binary_iso
@@ -214,7 +214,11 @@ fi
cat >> binary.sh << EOF
mkdir -p binary/.disk
-echo "xorriso -as mkisofs ${XORRISO_OPTIONS} -o ${IMAGE} binary" > binary/.disk/mkisofs
+xorriso -as mkisofs ${XORRISO_OPTIONS} -o ${IMAGE} binary
+EOF
+
+# retain the xorriso command used to create the image in the image itself
+cat <<-EOF >binary/.disk/mkisofs
xorriso -as mkisofs ${XORRISO_OPTIONS} -o ${IMAGE} binary
EOF