We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ddc1318 + c14139f commit 7818373Copy full SHA for 7818373
common/OpTestUtil.py
@@ -161,10 +161,10 @@ def getPRePDisk(self):
161
Identify the PReP partition, this disk name is required to copy
162
signed grub. This manual step required for RHEL OS only.
163
'''
164
- out = self.conf.host().host_run_command('sfdisk -l')
+ out = self.conf.host().host_run_command('df /boot')
165
for line in out:
166
- if "PPC PReP Boot" in line:
167
- self.prepDisk = line.split(" ")[0]
+ if "/dev" in line:
+ self.prepDisk = line.split(" ")[0].replace('2', '1')
168
break
169
if not self.prepDisk:
170
return False
0 commit comments