From 99ddb7de18363db3afa7cc62f3a52fb983dce01a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 12 Nov 2021 09:41:15 +0100 Subject: [disk-partitions] Fix syntax error --- .../disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modules/disk-partitions') diff --git a/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions b/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions index b0e1dad9..3294a9cd 100755 --- a/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions +++ b/core/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions @@ -254,7 +254,7 @@ if [ -n "$DO_PERSISTENT" ]; then done # awk script to take block count and block size from dumpe2fs output and multiply them to get byte size (bc because awk suxx) fs_size=$(dumpe2fs -h "$PART_DEV" | awk -F: \ - 'BEGIN{a=0;b=0}{if ($1 == "Block count") a=$2; if($1 == "Block size") b=$2;}END{ if (a>0 && b>0) print a "*" b} | bc') + 'BEGIN{a=0;b=0}{if ($1 == "Block count") a=$2; if($1 == "Block size") b=$2;}END{ if (a>0 && b>0) print a "*" b}' | bc) echo "$PART_DEV has ext4 fs of size $fs_size" if [ -n "$fs_size" ] && (( fs_size > 1000000 )); then # It's ext4, see if partition size was changed offline -- cgit v1.2.3-55-g7522