Skip to content

Commit 09af3d1

Browse files
committed
os-helper-fs: fix get_sector_size
Signed-off-by: Yann CARDAILLAC <[email protected]>
1 parent 34f3cbc commit 09af3d1

File tree

1 file changed

+1
-1
lines changed
  • meta-balena-common/recipes-support/os-helpers/os-helpers

1 file changed

+1
-1
lines changed

meta-balena-common/recipes-support/os-helpers/os-helpers/os-helpers-fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
get_sector_size() {
2424
local _device="$1"
2525

26-
lsblk -o NAME,PHY-SEC,TYPE "$_device" 2>/dev/null | awk '$3 == "part" {print $2}' | head -n1
26+
lsblk -o NAME,PHY-SEC,TYPE "$_device" 2>/dev/null | awk '$3 == "part" || $3 == "crypt" {print $2}' | head -n1
2727
}
2828

2929
# Wait for a file to appear with loop count limit.

0 commit comments

Comments
 (0)