diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-19 05:52:57 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-19 08:04:38 -0400 |
commit | 67e3888a04127eeee40bd934ea4bdc5a551e301d (patch) | |
tree | 36f915dd5049eb6bf285fb153c5dd71c8a0b7eb3 /xorriso.sh | |
parent | bced199d944b6ab69e2dcebf53bdae48a7b326f7 (diff) |
xorriso.sh
Diffstat (limited to 'xorriso.sh')
-rwxr-xr-x | xorriso.sh | 22 |
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 | |||
3 | outdev=debian-live-8.4.0-amd64-standard.btrfs.iso | ||
4 | indev=debian-live-8.4.0-amd64-standard.iso | ||
5 | volid=SamizdatLive | ||
6 | squashfs_iso_path=live/filesystem.squashfs | ||
7 | btrfs_iso_path=live/filesystem.btrfs | ||
8 | btrfs_filesystem=debian-live-8.4.0-amd64-standard.btrfs | ||
9 | |||
10 | set -ex | ||
11 | |||
12 | xorriso \ | ||
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}" | ||
22 | mv -f "$outdev"~ "$outdev" | ||