diff options
author | Max Christian Pohle | 2020-07-12 13:14:56 +0200 |
---|---|---|
committer | Max Christian Pohle | 2020-07-12 13:14:56 +0200 |
commit | 56a52c740961dff05b618addae84bb7d35954390 (patch) | |
tree | db62d59c49537c086b892b5be26721d6080ef31a | |
parent | 249b040e48a9d08ae8c9419eaed1717e241d655d (diff) | |
download | zfs-bash-tools-56a52c740961dff05b618addae84bb7d35954390.tar.bz2 zfs-bash-tools-56a52c740961dff05b618addae84bb7d35954390.zip |
Improved README
-rw-r--r-- | README.md | 28 | ||||
-rw-r--r-- | systemd-zfs-partition-backup/AUR/PKGBUILD | 2 | ||||
-rwxr-xr-x | systemd-zfs-partition-backup/AUR/getsha256sum.sh | 2 |
3 files changed, 13 insertions, 19 deletions
@@ -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 | |||
17 | 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 | ||
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 | ) |
16 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") | 16 | source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz") |
17 | sha256sums=('efb8f8f11401ffb8afc4ad228f9c6d6daffcd2451940d922a31b85076623a932') | 17 | sha256sums=('c4b26972196708138a17e096442b32af823e538c9b3415bab8c4416e6f5594b2') |
18 | 18 | ||
19 | package() { | 19 | package() { |
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) | |||
14 | echo $ARCHIVE | 14 | echo $ARCHIVE |
15 | 15 | ||
16 | cd $(git rev-parse --show-toplevel) | 16 | cd $(git rev-parse --show-toplevel) |
17 | git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" master | 17 | git archive --format=tar.gz --prefix=zfs-bash-tools-master/ -o "$ARCHIVE" HEAD |
18 | cd - > /dev/null | 18 | cd - > /dev/null |
19 | 19 | ||
20 | echo "# Archive content" | 20 | echo "# Archive content" |