summaryrefslogtreecommitdiff
path: root/xorriso.sh
blob: 29e1ff6df021358127c143b7d81cb9e190504bab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

outdev=debian-live-8.4.0-amd64-standard.btrfs.iso
indev=debian-live-8.4.0-amd64-standard.iso
volid=SamizdatLive
squashfs_iso_path=live/filesystem.squashfs
btrfs_iso_path=live/filesystem.btrfs
btrfs_filesystem=debian-live-8.4.0-amd64-standard.btrfs

set -ex

xorriso \
        -drive_class clear_list all \
        -outdev "$outdev"~ -indev "$indev" \
        -report_about mishap \
        -volid "$volid" \
        -return_with sorry 0 \
        -pathspecs on -overwrite on \
        -rm "$squashfs_iso_path" -- \
        -add_plainly any \
        "${btrfs_iso_path}=${btrfs_filesystem}"
mv -f "$outdev"~ "$outdev"