summaryrefslogtreecommitdiffstats
path: root/core/modules/disk-partitions
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/disk-partitions')
-rwxr-xr-xcore/modules/disk-partitions/data/opt/openslx/scripts/systemd-setup_partitions2
1 files changed, 1 insertions, 1 deletions
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