Skip to content

Commit

Permalink
Riverside: Workaround PDU issue LP#2039983
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin013 committed Nov 10, 2023
1 parent 55e9662 commit dcbe913
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,19 @@ def create_user(self, image_type):
)
cmd = f"sudo cp {remote_tmp}/user-data {ci_path}"
self._run_control(cmd)

# Workaround PDU cold reboot issue LP#2039983
cmd = (
"sudo sed -i 's/timeout=[0-9]*/timeout=0/g' "
f"{base}/boot/grub/grub.cfg"
)
self._run_control(cmd)
cmd = (
f"grep -rl 'GRUB_TIMEOUT=' {base}/etc/default/ | xargs "
"sudo sed -i 's/GRUB_TIMEOUT=[0-9]*/GRUB_TIMEOUT=0/g'"
)
self._run_control(cmd)

self._configure_sudo()
return
if image_type == "pi-desktop":
Expand Down

0 comments on commit dcbe913

Please sign in to comment.