'--',
'/etc/grub.d/01_ceph_kernel.tmp~',
'/etc/grub.d/01_ceph_kernel',
+ run.Raw('&&'),
+ 'sudo', 'sed', '-i',
+ '/^GRUB_CMDLINE_LINUX_DEFAULT=/ {/reboot=pci/! s/"$/ reboot=pci,force"/}',
+ '/etc/default/grub',
# update grub again so it accepts our default
run.Raw('&&'),
'sudo',
teuthology.delete_file(remote, '/etc/grub.d/01_ceph_kernel', sudo=True, force=True)
teuthology.sudo_write_file(remote, '/etc/grub.d/01_ceph_kernel', StringIO(grubfile), '755')
log.info('Distro Kernel Version: {version}'.format(version=newversion))
+ remote.run(args=[
+ 'sudo', 'sed', '-i',
+ '/^GRUB_CMDLINE_LINUX_DEFAULT=/ {/reboot=pci/! s/"$/ reboot=pci,force"/}',
+ '/etc/default/grub'
+ ])
remote.run(args=['sudo', 'update-grub'])
remote.safe_hard_reboot()
return
else:
raise UnsupportedPackageTypeError(f"Unknown ostype: {ostype}")
+ remote.run(args=[
+ 'sudo', 'sed', '-i',
+ '/^GRUB_CMDLINE_LINUX_DEFAULT=/ {/reboot=pci/! s/"$/ reboot=pci,force"/}',
+ '/etc/default/grub'
+ ])
+
if _kernel_has_bls(remote):
status_ok = _kernel_set_default_bls(remote, newversion, ostype)
if not status_ok: