docs/guides/chimera/: clean up encrypted install

Chimera ZFS packages now include the zdev initramfs-tools hook, which
copies in /etc/zfs .

31eae4095e
This commit is contained in:
Zach Dykstra 2024-02-17 22:01:22 -06:00
parent 5b61ab9f2b
commit 1fad144514
No known key found for this signature in database
GPG Key ID: F2F0D4FB7A2861E8
2 changed files with 8 additions and 26 deletions

View File

@ -19,7 +19,7 @@ Update package repositories
.. code-block::
apk add --no-interactive chimera-repo-contrib chimera-repo-user
apk add --no-interactive chimera-repo-contrib
apk update
Setup additional tools

View File

@ -1,13 +1,6 @@
ZFS Configuration
-----------------
Install ZFS and kernel
~~~~~~~~~~~~~~~~~~~~~~
.. code-block::
apk add --no-interactive linux-lts-zfs-bin
Configure initramfs-tools
~~~~~~~~~~~~~~~~~~~~~~~~~
@ -23,22 +16,11 @@ Configure initramfs-tools
.. code-block::
cat << 'EOF' > /usr/share/initramfs-tools/hooks/zfsencryption
if [ "$1" = "prereqs" ]; then
exit 0
fi
. /usr/share/initramfs-tools/hook-functions
[ -d "${DESTDIR}/etc/zfs" ] || mkdir "${DESTDIR}/etc/zfs"
for keyfile in /etc/zfs/*.key; do
[ -e "${keyfile}" ] || continue
cp "${keyfile}" "${DESTDIR}/etc/zfs/"
done
EOF
chmod +x /usr/share/initramfs-tools/hooks/zfsencryption
echo "UMASK=0077" > /etc/initramfs-tools/conf.d/umask.conf
update-initramfs -c -k all
Install ZFS and kernel
~~~~~~~~~~~~~~~~~~~~~~
.. code-block::
apk add --no-interactive linux-lts-zfs-bin