Skip to content

Commit 7818373

Browse files
Merge pull request #793 from nasastry/gsb_disk_fix
Change in identifying PReP partition
2 parents ddc1318 + c14139f commit 7818373

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/OpTestUtil.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ def getPRePDisk(self):
161161
Identify the PReP partition, this disk name is required to copy
162162
signed grub. This manual step required for RHEL OS only.
163163
'''
164-
out = self.conf.host().host_run_command('sfdisk -l')
164+
out = self.conf.host().host_run_command('df /boot')
165165
for line in out:
166-
if "PPC PReP Boot" in line:
167-
self.prepDisk = line.split(" ")[0]
166+
if "/dev" in line:
167+
self.prepDisk = line.split(" ")[0].replace('2', '1')
168168
break
169169
if not self.prepDisk:
170170
return False

0 commit comments

Comments
 (0)