From bfa5515d750ef59f6c1d9f1eddc9b0e9417f38c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Mon, 27 Apr 2026 16:23:51 +0200 Subject: [PATCH] Fix double /dev/ prefix bug in collect_partitions lsblk -p returns PKNAME as a full path (/dev/sda), so stripping the basename before prepending /dev/ avoids /dev//dev/sda. Co-Authored-By: Claude Sonnet 4.6 --- system_setup/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_setup/install.sh b/system_setup/install.sh index df3b9a8..658a156 100755 --- a/system_setup/install.sh +++ b/system_setup/install.sh @@ -98,7 +98,7 @@ collect_partitions() { [[ "$LABEL" == "$OEMDRV_LABEL" ]] && continue [[ -z "$PKNAME" ]] && continue - local disk="/dev/$PKNAME" + local disk="/dev/${PKNAME##*/}" local pnum pnum=$(cat /sys/class/block/"${NAME##/dev/}"/partition 2>/dev/null) || continue