summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 06:52:10 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 06:52:10 -0400
commit595f36b990fd3fc99e6d911465a2e68c0f3a6eab (patch)
treea5508ee4035b7dd75e86665b4ed60993bc6fd0af
parent12f9a42a636669c7a5d0861d8b6a0b3e20e35edf (diff)
xorriso.sh accepts btrfs filesystem seeds as arguments
-rwxr-xr-xxorriso.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/xorriso.sh b/xorriso.sh
index 944682e..dbe5fe8 100755
--- a/xorriso.sh
+++ b/xorriso.sh
@@ -1,13 +1,22 @@
1#!/bin/sh 1#!/bin/sh
2 2
3outdev=debian-live-8.4.0-amd64-standard.btrfs.isohybrid2 3outdev=samizdat.iso
4indev=debian-live-8.4.0-amd64-standard.iso 4indev=debian-live-8.4.0-amd64-standard.iso
5volid=SamizdatLive 5volid=SamizdatLive
6btrfs_filesystem=debian-live-8.4.0-amd64-standard.btrfs
7gpg_iso_path=gnupghome 6gpg_iso_path=gnupghome
8gnupghome=gnupghome 7gnupghome=gnupghome
9secrets=secrets 8secrets=secrets
10 9
10if [ $# = 0 ]; then
11 set -- debian-live-8.4.0-amd64-standard.btrfs layer.btrfs
12fi
13
14for fs; do
15 [ -f "$fs" ] || exit 1
16 shift
17 set -- "$@" "rootfs/${fs##*/}=$fs"
18done
19
11die() { printf '%s\n' "$*"; exit 1; } 20die() { printf '%s\n' "$*"; exit 1; }
12 21
13make_gnupghome() 22make_gnupghome()
@@ -55,7 +64,7 @@ xorriso \
55 \ 64 \
56 \ 65 \
57 -add isolinux -- \ 66 -add isolinux -- \
58 -add "rootfs/${btrfs_filesystem}=${btrfs_filesystem}" -- \ 67 -follow link -add "$@" -- -follow default \
59 -add "${gpg_iso_path}=${gnupghome}" -- \ 68 -add "${gpg_iso_path}=${gnupghome}" -- \
60 \ 69 \
61 \ 70 \