summaryrefslogtreecommitdiff
path: root/xorriso.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xorriso.sh')
-rwxr-xr-xxorriso.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/xorriso.sh b/xorriso.sh
new file mode 100755
index 0000000..29e1ff6
--- /dev/null
+++ b/xorriso.sh
@@ -0,0 +1,22 @@
1#!/bin/sh
2
3outdev=debian-live-8.4.0-amd64-standard.btrfs.iso
4indev=debian-live-8.4.0-amd64-standard.iso
5volid=SamizdatLive
6squashfs_iso_path=live/filesystem.squashfs
7btrfs_iso_path=live/filesystem.btrfs
8btrfs_filesystem=debian-live-8.4.0-amd64-standard.btrfs
9
10set -ex
11
12xorriso \
13 -drive_class clear_list all \
14 -outdev "$outdev"~ -indev "$indev" \
15 -report_about mishap \
16 -volid "$volid" \
17 -return_with sorry 0 \
18 -pathspecs on -overwrite on \
19 -rm "$squashfs_iso_path" -- \
20 -add_plainly any \
21 "${btrfs_iso_path}=${btrfs_filesystem}"
22mv -f "$outdev"~ "$outdev"