Skip to content

Commit

Permalink
Patch address regression issue in configuring Secure boot in RHEL
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
PraveenPenguin committed Oct 28, 2024
1 parent 6368ac1 commit ed2e949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed2e949

Please sign in to comment.