From 27dc9f485b42f3334795ac88b652d5ebc953c961 Mon Sep 17 00:00:00 2001 From: Matthias Berndt Date: Tue, 30 May 2023 08:52:58 +0200 Subject: [PATCH] formatting --- dracut/90stratis/stratis-rootfs-setup | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dracut/90stratis/stratis-rootfs-setup b/dracut/90stratis/stratis-rootfs-setup index 443508a93f..aa9af1ca57 100755 --- a/dracut/90stratis/stratis-rootfs-setup +++ b/dracut/90stratis/stratis-rootfs-setup @@ -19,10 +19,9 @@ if $(stratis-min pool is-stopped "$STRATIS_ROOTFS_UUID"); then if $(stratis-min pool is-encrypted "$STRATIS_ROOTFS_UUID"); then ATTEMPTS_REMAINING=3 if - ! while [ $((ATTEMPTS_REMAINING--)) -gt 0 ] - do + ! while [ $((ATTEMPTS_REMAINING--)) -gt 0 ]; do systemd-ask-password --id="stratis:$STRATIS_ROOTFS_UUID" "Enter password for Stratis pool with UUID $STRATIS_ROOTFS_UUID containing root filesystem" | - stratis-min pool start --prompt --unlock-method=keyring "$STRATIS_ROOTFS_UUID" && break + stratis-min pool start --prompt --unlock-method=keyring "$STRATIS_ROOTFS_UUID" && break done then echo Failed to start pool with UUID $STRATIS_ROOTFS_UUID using a passphrase >&2