From ed2e9497794488684c7434125996996f46694a48 Mon Sep 17 00:00:00 2001 From: Praveen K Pandey Date: Mon, 28 Oct 2024 09:31:49 +0530 Subject: [PATCH] Patch address regression issue in configuring Secure boot in RHEL As using replace command replace char occurence in all the places resultent device is not found in system this grub backup command is failing, this patch add vlaue only where it is needed Signed-off-by: Praveen K Pandey --- common/OpTestUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/OpTestUtil.py b/common/OpTestUtil.py index e34d2edc..c72f77de 100644 --- a/common/OpTestUtil.py +++ b/common/OpTestUtil.py @@ -164,7 +164,7 @@ def getPRePDisk(self): out = self.conf.host().host_run_command('df /boot') for line in out: if "/dev" in line: - self.prepDisk = line.split(" ")[0].replace('2', '1') + self.prepDisk = line.split(" ")[0][:-1]+'1' break if not self.prepDisk: return False