Skip to content

Commit 12d60bc

Browse files
committed
Armbian-zram-config mkfs detecion gets empty string
1 parent 9ef5b99 commit 12d60bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bsp/common/usr/lib/armbian/armbian-zram-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
# Read mkfs version as it behaves differently after v2.40.1 (Trixie / Plucky ->)
2121
# mkfs is used to create the zram devices and the ramlog partition
22-
MKFS_VERSION=$(mkfs --version | grep -oP '\d+\.\d+\.\d+')
22+
MKFS_VERSION=$(LC_ALL=C mkfs --version 2>&1 | grep -Po 'util-linux\s+\K[0-9]+(\.[0-9]+)*' | head -n1)
2323

2424
# and script configuration
2525
. /usr/lib/armbian/armbian-common

0 commit comments

Comments
 (0)