Skip to content

Commit a221e4c

Browse files
committed
Adding the grub rebuild command after Gcov kernel Install
Few times grub-rebuild is not properly happening or not taking care after Gcov kernel installed. Hence The Gcov kernel doesnot listing in the grub entry during boot. So added the grub rebuild command, with which it builds the Gcov kernel properly. Signed-off-by: Naresh Bannoth <nbannoth@in.ibm.com>
1 parent cde4ba1 commit a221e4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testcases/GcovSetup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ def build_and_boot(self, config_path):
199199
cmd = f"make -j modules_install && make install"
200200
if not self.cv_HOST.host_run_command(cmd):
201201
self.fail("module installation failed")
202+
self.cv_HOST.host_run_command("grub2-mkconfig -o /boot/grub2/grub.cfg")
202203
except Exception:
203204
self.fail("compile and build of gcov kernel failed")
204205

0 commit comments

Comments
 (0)