summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 05:52:57 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 08:04:38 -0400
commit67e3888a04127eeee40bd934ea4bdc5a551e301d (patch)
tree36f915dd5049eb6bf285fb153c5dd71c8a0b7eb3
parentbced199d944b6ab69e2dcebf53bdae48a7b326f7 (diff)
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"