From 8372bdf143b852c35860bd0bbb5f75a8f7f8e078 Mon Sep 17 00:00:00 2001 From: Robert Church Date: Tue, 6 Dec 2022 05:03:40 -0600 Subject: [PATCH] Update root disk detection in is-rootdisk-device.sh The root filesystem is now carved out of the cgts-vg volume group instead of a dedicated partition. Update the is-rootdisk-device.sh to look for '/boot' instead of '/' as '/boot' is still a dedicated partition on the root disk. This will impact proper I/O scheduler selection. Test Plan: PASS - Build/Install. Execute script passing root an non-root disks. Make sure proper output is displayed Signed-off-by: Robert Church Story: 2010444 Task: 47000 Change-Id: I77491e02adb51bc85ea7c3b3a1b89eda7c91a1a5 --- utilities/platform-util/scripts/is-rootdisk-device.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/platform-util/scripts/is-rootdisk-device.sh b/utilities/platform-util/scripts/is-rootdisk-device.sh index 044b10df..6325fc55 100755 --- a/utilities/platform-util/scripts/is-rootdisk-device.sh +++ b/utilities/platform-util/scripts/is-rootdisk-device.sh @@ -13,7 +13,7 @@ dev=$1 -rootdev=$(lsblk --ascii -oPKNAME -n $(findmnt -n -T / -o SOURCE | cut -d'[' -f1)) +rootdev=$(lsblk --ascii -oPKNAME -n $(findmnt -n -T /boot -o SOURCE | cut -d'[' -f1)) if [ $# -eq 0 ]; then echo "ROOTDISK_DEVICE=${rootdev}" else