diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-27 06:52:10 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-27 06:52:10 -0400 |
commit | 595f36b990fd3fc99e6d911465a2e68c0f3a6eab (patch) | |
tree | a5508ee4035b7dd75e86665b4ed60993bc6fd0af | |
parent | 12f9a42a636669c7a5d0861d8b6a0b3e20e35edf (diff) |
xorriso.sh accepts btrfs filesystem seeds as arguments
-rwxr-xr-x | xorriso.sh | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,13 +1,22 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | outdev=debian-live-8.4.0-amd64-standard.btrfs.isohybrid2 | 3 | outdev=samizdat.iso |
4 | indev=debian-live-8.4.0-amd64-standard.iso | 4 | indev=debian-live-8.4.0-amd64-standard.iso |
5 | volid=SamizdatLive | 5 | volid=SamizdatLive |
6 | btrfs_filesystem=debian-live-8.4.0-amd64-standard.btrfs | ||
7 | gpg_iso_path=gnupghome | 6 | gpg_iso_path=gnupghome |
8 | gnupghome=gnupghome | 7 | gnupghome=gnupghome |
9 | secrets=secrets | 8 | secrets=secrets |
10 | 9 | ||
10 | if [ $# = 0 ]; then | ||
11 | set -- debian-live-8.4.0-amd64-standard.btrfs layer.btrfs | ||
12 | fi | ||
13 | |||
14 | for fs; do | ||
15 | [ -f "$fs" ] || exit 1 | ||
16 | shift | ||
17 | set -- "$@" "rootfs/${fs##*/}=$fs" | ||
18 | done | ||
19 | |||
11 | die() { printf '%s\n' "$*"; exit 1; } | 20 | die() { printf '%s\n' "$*"; exit 1; } |
12 | 21 | ||
13 | make_gnupghome() | 22 | make_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 | \ |