diff options
author | Simon Rettberg | 2023-07-06 12:18:50 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-07-06 12:18:50 +0200 |
commit | d3d625a167025518095892da50db2b8483432c62 (patch) | |
tree | 138ada05be6ac1733f30f99182db547b327bafb8 | |
parent | [slx-dmsetup] Introduce SLX_ID44_CRYPT for encrypting (diff) | |
download | systemd-init-d3d625a167025518095892da50db2b8483432c62.tar.gz systemd-init-d3d625a167025518095892da50db2b8483432c62.tar.xz systemd-init-d3d625a167025518095892da50db2b8483432c62.zip |
[slx-dmsetup] Use new is_on function from slx-tools
-rwxr-xr-x | modules.d/slx-dmsetup/scripts/dmsetup-slx-device | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device index 8bf0f097..195ab3ad 100755 --- a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device +++ b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device @@ -551,7 +551,7 @@ fi if [ -z "$writable_device" ]; then echo "$0: Could not find writable device with id '$SLX_WRITABLE_DEVICE_IDENTIFIER'." ramdisk_fallback -elif [ -n "$SLX_ID44_CRYPT" ] && [ "$SLX_ID44_CRYPT" != 0 ]; then +elif is_on "$SLX_ID44_CRYPT"; then # Config option crypts the entire ID44 device(s), before any slices are taken from it. if encrypt_device "$writable_device" "id44-crypt"; then echo "$0: ID44 encrypted" |