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:
parent
5b61ab9f2b
commit
1fad144514
|
@ -19,7 +19,7 @@ Update package repositories
|
||||||
|
|
||||||
.. code-block::
|
.. code-block::
|
||||||
|
|
||||||
apk add --no-interactive chimera-repo-contrib chimera-repo-user
|
apk add --no-interactive chimera-repo-contrib
|
||||||
apk update
|
apk update
|
||||||
|
|
||||||
Setup additional tools
|
Setup additional tools
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
ZFS Configuration
|
ZFS Configuration
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Install ZFS and kernel
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
|
|
||||||
.. code-block::
|
|
||||||
|
|
||||||
apk add --no-interactive linux-lts-zfs-bin
|
|
||||||
|
|
||||||
Configure initramfs-tools
|
Configure initramfs-tools
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -23,22 +16,11 @@ Configure initramfs-tools
|
||||||
|
|
||||||
.. code-block::
|
.. 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
|
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
|
||||||
|
|
Loading…
Reference in New Issue