summaryrefslogtreecommitdiffstats
path: root/core/modules/disk-partitions
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-12 09:41:15 +0100
committerSimon Rettberg2021-11-12 09:41:15 +0100
commit99ddb7de18363db3afa7cc62f3a52fb983dce01a (patch)
tree16645969beb653df5ff4ea0cd5a170571c1a2af8 /core/modules/disk-partitions
parent/var/run -> /run (diff)
downloadmltk-99ddb7de18363db3afa7cc62f3a52fb983dce01a.tar.gz
mltk-99ddb7de18363db3afa7cc62f3a52fb983dce01a.tar.xz
mltk-99ddb7de18363db3afa7cc62f3a52fb983dce01a.zip
[disk-partitions] Fix syntax error
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