aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2020-07-12 13:14:56 +0200
committerMax Christian Pohle2020-07-12 13:14:56 +0200
commit56a52c740961dff05b618addae84bb7d35954390 (patch)
treedb62d59c49537c086b892b5be26721d6080ef31a
parent249b040e48a9d08ae8c9419eaed1717e241d655d (diff)
downloadzfs-bash-tools-56a52c740961dff05b618addae84bb7d35954390.tar.bz2
zfs-bash-tools-56a52c740961dff05b618addae84bb7d35954390.zip
Improved README
-rw-r--r--README.md28
-rw-r--r--systemd-zfs-partition-backup/AUR/PKGBUILD2
-rwxr-xr-xsystemd-zfs-partition-backup/AUR/getsha256sum.sh2
3 files changed, 13 insertions, 19 deletions
diff --git a/README.md b/README.md
index a1f7950..0b0c2e0 100644
--- a/README.md
+++ b/README.md
@@ -11,23 +11,17 @@
11 11
12### crypttab 12### crypttab
13 13
14``` 14 # /etc/crypttab example
15# /etc/crypttab example 15 SomeDisk_SDSSDH0000G_123456789-part2 /dev/disk/by-id/SomeDisk_SDSSDH0000G_123456789-part2 /etc/.crypt/SomeDisk_SDSSDH0000G_123456789-part2.key noauto,x-systemd.device-timeout=5s
16
17SomeDisk_SDSSDH0000G_123456789-part2 /dev/disk/by-id/SomeDisk_SDSSDH0000G_123456789-part2 /etc/.crypt/SomeDisk_SDSSDH0000G_123456789-part2.key noauto,x-systemd.device-timeout=5s
18```
19 16
20### fstab 17### fstab
21 18
22``` 19 # /etc/fstab example
23# /etc/fstab example 20
24 21 # Note that the connector name has been removed from the mountpoint.
25# Note that the connector name has been removed from the mountpoint. 22 # The automount unit will be named after that and so must the zfs dataset
26# The automount unit will be named after that and so must the zfs dataset 23 /dev/disk/by-id/ata-SomeDisk_SDSSDH0000G_123456789-part1 /media/SomeDisk_SDSSDH0000G_123456789-part1 auto defaults,noauto,ro,x-systemd.automount,x-mount.mkdir,x-systemd.idle-timeout=1min,x-systemd.device-timeout=5s 0 0
27/dev/disk/by-id/ata-SomeDisk_SDSSDH0000G_123456789-part1 /media/SomeDisk_SDSSDH0000G_123456789-part1 auto defaults,noauto,ro,x-systemd.automount,x-mount.mkdir,x-systemd.idle-timeout=1min,x-systemd.device-timeout=5s 0 0 24
28 25 # The following name takes the name we gave our disk in the crypttab (first column).
29# The following name takes the name we gave our disk in the crypttab (first column). 26 # Such devices are then available via /dev/mapper/:
30# Such devices are then available via /dev/mapper/: 27 /dev/mapper/SomeDisk_SDSSDH0000G_123456789-part2 /media/SomeDisk_SDSSDH0000G_123456789-part2 auto defaults,noauto,ro,x-systemd.automount,x-mount.mkdir,x-systemd.idle-timeout=1min,x-systemd.device-timeout=5s 0 0
31/dev/mapper/SomeDisk_SDSSDH0000G_123456789-part2 /media/SomeDisk_SDSSDH0000G_123456789-part2 auto defaults,noauto,ro,x-systemd.automount,x-mount.mkdir,x-systemd.idle-timeout=1min,x-systemd.device-timeout=5s 0 0
32```
33
diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD
index 21acfb4..7b63126 100644
--- a/systemd-zfs-partition-backup/AUR/PKGBUILD
+++ b/systemd-zfs-partition-backup/AUR/PKGBUILD
@@ -14,7 +14,7 @@ depends=(
14 'rsync' 14 'rsync'
15) 15)
16source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") 16source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz")
17sha256sums=('efb8f8f11401ffb8afc4ad228f9c6d6daffcd2451940d922a31b85076623a932') 17sha256sums=('c4b26972196708138a17e096442b32af823e538c9b3415bab8c4416e6f5594b2')
18 18
19package() { 19package() {
20 install -D zfs-bash-tools-master/${pkgname}.sh \ 20 install -D zfs-bash-tools-master/${pkgname}.sh \
diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh
index df3d588..f90c850 100755
--- a/systemd-zfs-partition-backup/AUR/getsha256sum.sh
+++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh
@@ -14,7 +14,7 @@ ARCHIVE=$(mktemp --suffix=.tar.bz2)
14echo $ARCHIVE 14echo $ARCHIVE
15 15
16cd $(git rev-parse --show-toplevel) 16cd $(git rev-parse --show-toplevel)
17git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master 17git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" HEAD
18cd - > /dev/null 18cd - > /dev/null
19 19
20echo "# Archive content" 20echo "# Archive content"
..