From 176c7eaba6d13bdd0ec898a9eef302df54c32924 Mon Sep 17 00:00:00 2001 From: David Cassany Date: Mon, 21 Dec 2020 15:17:30 +0100 Subject: [PATCH] Modify lsblk flags for a consistent output across distros This commit modifies the lsblk flags to make use of the list format instead of raw output. `--list` flag seams to keep the geometry order and produces a consistent output in several distros. --- dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh b/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh index 356a16b0..372b2a99 100644 --- a/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh +++ b/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh @@ -179,7 +179,7 @@ function get_partition_node_name { local part udev_pending for partnode in $( - lsblk -p -r -o NAME,TYPE "${disk}" | grep -E "part|md$" | cut -f1 -d ' ' + lsblk -p -l -o NAME,TYPE "${disk}" | grep -E "part|md$" | cut -f1 -d ' ' );do if [ "${index}" = "${partid}" ];then echo "${partnode}"