src: update
Removed testing capability as it breaks dracut initramfs generation.
This commit is contained in:
parent
09baeaaf98
commit
8e57f4989a
3 changed files with 2 additions and 40 deletions
|
@ -1,11 +1,3 @@
|
|||
# Find scripts
|
||||
module = find_program('zlevis.sh')
|
||||
setup = find_program('module-setup.sh')
|
||||
|
||||
# Test the scripts
|
||||
test('zlevis.sh', module, args: '--summary')
|
||||
test('module-setup.sh', setup, args: '--summary')
|
||||
|
||||
# Add paths of scripts to bins
|
||||
bins += join_paths(meson.current_source_dir(), 'zlevis.sh')
|
||||
bins += join_paths(meson.current_source_dir(), 'module-setup.sh')
|
|
@ -1,17 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Exit immediately if a command exits with a non-zero status
|
||||
set -e
|
||||
|
||||
# Summary of the script's functionality
|
||||
summary="The setup of the dracut module of zlevis"
|
||||
|
||||
# Display summary if requested
|
||||
if [ "$1" = "--summary" ]; then
|
||||
echo "$summary"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Depend on udev-rules and zfs
|
||||
depends() {
|
||||
echo udev-rules zfs
|
||||
|
@ -26,7 +14,4 @@ install() {
|
|||
# Run the zlevis decryption hook before the 90zfs hook
|
||||
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 $?
|
||||
}
|
|
@ -1,17 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Exit immediately if a command exits with a non-zero status
|
||||
set -e
|
||||
|
||||
# Summary of the script's functionality
|
||||
summary="The dracut module of zlevis"
|
||||
|
||||
# Display summary if requested
|
||||
if [ "$1" = "--summary" ]; then
|
||||
echo "$summary"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Load the ZFS kernel module
|
||||
modprobe zfs 2>/dev/null
|
||||
udevadm settle
|
||||
|
@ -29,7 +17,4 @@ if [ $(zpool list -H -o feature@encryption $_root_pool) = "active" ]; then
|
|||
if [ "$_encryption_root" != "-" ]; 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 $?
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue