diff options
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" | ||