From 21294b868dde610e3d1161a84a9653d2ebb0d4d8 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Tue, 20 Jun 2023 17:31:57 +0000 Subject: [PATCH] packaging: Fix indentation in init.sh script This PR replaces single spaces for tabs in order to fix the indentation in the init.sh script. Fixes #7147 Signed-off-by: Gabriela Cervantes --- tools/packaging/static-build/initramfs/init.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/packaging/static-build/initramfs/init.sh b/tools/packaging/static-build/initramfs/init.sh index d6a68d62f3..4b224280b7 100755 --- a/tools/packaging/static-build/initramfs/init.sh +++ b/tools/packaging/static-build/initramfs/init.sh @@ -18,11 +18,11 @@ echo "/sbin/mdev" > /proc/sys/kernel/hotplug mdev -s get_option() { - local value - value=" $(cat /proc/cmdline) " - value="${value##* ${1}=}" - value="${value%% *}" - [ "${value}" != "" ] && echo "${value}" + local value + value=" $(cat /proc/cmdline) " + value="${value##* ${1}=}" + value="${value%% *}" + [ "${value}" != "" ] && echo "${value}" } rootfs_verifier=$(get_option rootfs_verity.scheme) @@ -32,11 +32,11 @@ hash_device=${root_device%?}2 if [ -e ${root_device} ] && [ -e ${hash_device} ] && [ "${rootfs_verifier}" = "dm-verity" ] then - veritysetup open "${root_device}" root "${hash_device}" "${rootfs_hash}" - mount /dev/mapper/root /mnt + veritysetup open "${root_device}" root "${hash_device}" "${rootfs_hash}" + mount /dev/mapper/root /mnt else - echo "No LUKS device found" - mount "${root_device}" /mnt + echo "No LUKS device found" + mount "${root_device}" /mnt fi umount /proc