Skip to content

Commit b13c614

Browse files
volthMael-Le-Garrec
authored andcommitted
boot-local: fix detecting 'first Linux filesystem partition'
1 parent 856959c commit b13c614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Linux/tree-common/boot-local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mountroot() {
3434
root_partition_uuid=$(echo "$devinfo" | cut -d' ' -f2- | grep -x "root .*" | head -1 | cut -d' ' -f3)
3535
# If that doesn't work, use the first Linux filesystem partition
3636
if [ -z "$root_partition_uuid" ]; then
37-
root_partition_uuid=$(echo "$devinfo" | cut -d' ' -f3 | grep -x "$partition_type .*" | head -1 | cut -d' ' -f2)
37+
root_partition_uuid=$(echo "$devinfo" | cut -d' ' -f3- | grep -x "$partition_type .*" | head -1 | cut -d' ' -f2)
3838
fi
3939
# If that didn't work either, give up
4040
[ -z "$root_partition_uuid" ] && die "No root partition found"

0 commit comments

Comments
 (0)