← Back to team overview

canonical-hw-cert team mailing list archive

[Merge] ~kevinyeh/hwcert-jenkins-jobs:avoid-boot-oem-kernel into hwcert-jenkins-jobs:master

 

Kevin Yeh has proposed merging ~kevinyeh/hwcert-jenkins-jobs:avoid-boot-oem-kernel into hwcert-jenkins-jobs:master.

Commit message:
a temp workaround for avoiding system boot from oem-kernel, since focal-oem will be retired soon.

Requested reviews:
  hwcert-jenkins (hwcert-jenkins)

For more details, see:
https://code.launchpad.net/~kevinyeh/hwcert-jenkins-jobs/+git/hwcert-jenkins-jobs/+merge/426803
-- 
Your team hwcert-jenkins is requested to review the proposed merge of ~kevinyeh/hwcert-jenkins-jobs:avoid-boot-oem-kernel into hwcert-jenkins-jobs:master.
diff --git a/jobs/sru/run-sru.sh b/jobs/sru/run-sru.sh
index 0347a18..0515a76 100644
--- a/jobs/sru/run-sru.sh
+++ b/jobs/sru/run-sru.sh
@@ -218,6 +218,9 @@ cat > job.yaml <<EOF
         _run sudo amixer -c 1 set Master unmute
         _run sudo amixer -c 1 set Master 100
         _run sudo amixer -c 1 set Speaker 100
+	# avoid system boot from oem-kernel
+	_run sudo rm /etc/default/grub.d/oem-flavour.cfg
+	_run sudo update-grub2
         _run sudo reboot
 
         # wait a bit after the reboot, or else we may detect it's up before it's rebooted

Follow ups