From b13c61428c4fabfe227eb3e99348d72854880a5d Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 4 Oct 2018 08:58:29 +0000 Subject: [PATCH] boot-local: fix detecting 'first Linux filesystem partition' --- Linux/tree-common/boot-local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux/tree-common/boot-local b/Linux/tree-common/boot-local index 9b0357a..566ea1d 100644 --- a/Linux/tree-common/boot-local +++ b/Linux/tree-common/boot-local @@ -34,7 +34,7 @@ mountroot() { root_partition_uuid=$(echo "$devinfo" | cut -d' ' -f2- | grep -x "root .*" | head -1 | cut -d' ' -f3) # If that doesn't work, use the first Linux filesystem partition if [ -z "$root_partition_uuid" ]; then - root_partition_uuid=$(echo "$devinfo" | cut -d' ' -f3 | grep -x "$partition_type .*" | head -1 | cut -d' ' -f2) + root_partition_uuid=$(echo "$devinfo" | cut -d' ' -f3- | grep -x "$partition_type .*" | head -1 | cut -d' ' -f2) fi # If that didn't work either, give up [ -z "$root_partition_uuid" ] && die "No root partition found"