summaryrefslogtreecommitdiff
path: root/xorriso-layer.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-26 04:06:20 -0400
committerAndrew Cady <d@jerkface.net>2016-04-26 04:06:20 -0400
commitc33cb424ef479a6947395391b3771cc56b2d6161 (patch)
treee9b08c0e06d9829e55277e929aaee55ce135aaae /xorriso-layer.sh
parent14a1ea75b89f56dacf55d865c810530f58ab3fca (diff)
xorriso-layer no longer hardcodes the layer fs filename
Diffstat (limited to 'xorriso-layer.sh')
-rwxr-xr-xxorriso-layer.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/xorriso-layer.sh b/xorriso-layer.sh
index 886e174..b8f6ede 100755
--- a/xorriso-layer.sh
+++ b/xorriso-layer.sh
@@ -4,10 +4,12 @@ outdev=debian-live-8.4.0-amd64-standard.btrfs.layered.iso
4indev=debian-live-8.4.0-amd64-standard.btrfs.iso 4indev=debian-live-8.4.0-amd64-standard.btrfs.iso
5volid=SamizdatLive 5volid=SamizdatLive
6btrfs_layer_iso_path=live/layer.btrfs 6btrfs_layer_iso_path=live/layer.btrfs
7btrfs_layer_filesystem=debian-live-8.4.0-amd64-standard.layer.snapshot.2016-04-22.222941.btrfs 7btrfs_layer_filesystem="$1"
8 8
9die() { printf '%s\n' "$*"; exit 1; } 9die() { printf '%s\n' "$*"; exit 1; }
10 10
11[ -f "$btrfs_layer_filesystem" ] || die "Usage: $0 <layer.btrfs>"
12
11set -ex 13set -ex
12 14
13cp --reflink "$indev" "$outdev"~ 15cp --reflink "$indev" "$outdev"~