diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-26 04:06:20 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-26 04:06:20 -0400 |
commit | c33cb424ef479a6947395391b3771cc56b2d6161 (patch) | |
tree | e9b08c0e06d9829e55277e929aaee55ce135aaae /xorriso-layer.sh | |
parent | 14a1ea75b89f56dacf55d865c810530f58ab3fca (diff) |
xorriso-layer no longer hardcodes the layer fs filename
Diffstat (limited to 'xorriso-layer.sh')
-rwxr-xr-x | xorriso-layer.sh | 4 |
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 | |||
4 | indev=debian-live-8.4.0-amd64-standard.btrfs.iso | 4 | indev=debian-live-8.4.0-amd64-standard.btrfs.iso |
5 | volid=SamizdatLive | 5 | volid=SamizdatLive |
6 | btrfs_layer_iso_path=live/layer.btrfs | 6 | btrfs_layer_iso_path=live/layer.btrfs |
7 | btrfs_layer_filesystem=debian-live-8.4.0-amd64-standard.layer.snapshot.2016-04-22.222941.btrfs | 7 | btrfs_layer_filesystem="$1" |
8 | 8 | ||
9 | die() { printf '%s\n' "$*"; exit 1; } | 9 | die() { printf '%s\n' "$*"; exit 1; } |
10 | 10 | ||
11 | [ -f "$btrfs_layer_filesystem" ] || die "Usage: $0 <layer.btrfs>" | ||
12 | |||
11 | set -ex | 13 | set -ex |
12 | 14 | ||
13 | cp --reflink "$indev" "$outdev"~ | 15 | cp --reflink "$indev" "$outdev"~ |