docs/zlevis/implementation.md: update
Removed dracut breaking code in dracut implementation of zlevis.
This commit is contained in:
parent
1090e91867
commit
6cb0dfbb29
1 changed files with 0 additions and 12 deletions
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue