From 6cb0dfbb29d28591233eabe7c9123e7b1c9737b1 Mon Sep 17 00:00:00 2001 From: Luc Date: Sun, 10 Aug 2025 12:18:02 +0200 Subject: [PATCH] docs/zlevis/implementation.md: update Removed dracut breaking code in dracut implementation of zlevis. --- docs/zlevis/implementation.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/zlevis/implementation.md b/docs/zlevis/implementation.md index a2a6a8a..931a402 100644 --- a/docs/zlevis/implementation.md +++ b/docs/zlevis/implementation.md @@ -57,9 +57,6 @@ Create the **executable** module setup of the `zlevis-dracut` module: ``` shell title="/usr/lib/dracut/modules.d/85zlevis/module-setup.sh" #!/bin/bash -# Exit immediately if a command exits with a non-zero status -set -e - # Depend on udev-rules and zfs depends() { echo udev-rules zfs @@ -75,9 +72,6 @@ install() { inst_hook pre-mount 85 "${moddir}/zlevis.sh" inst_simple "${moddir}/zlevis.sh" "/sbin/zlevis.sh" } - -# Exit with the status of the last command -exit $? ``` and create the **executable** module script of the `zlevis-dracut` module: @@ -85,9 +79,6 @@ and create the **executable** module script of the `zlevis-dracut` module: ``` shell title="/usr/lib/dracut/modules.d/85zlevis/zlevis.sh" #!/bin/sh -# Exit immediately if a command exits with a non-zero status -set -e - # Load the ZFS kernel module modprobe zfs 2>/dev/null udevadm settle @@ -106,9 +97,6 @@ if [ $(zpool list -H -o feature@encryption $_root_pool) = "active" ]; then zlevis decrypt $_root_pool | zfs load-key -L prompt "$_root_pool" || echo "Failed to unlock $_root_pool with TPM" fi fi - -# Exit with the status of the last command -exit $? ``` Now `dracut` will recognise the `zlevis` module, and if enabled will be added to the `initramfs` to be executed before the `90zfs` hook. \ No newline at end of file