Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagesh committed Nov 14, 2024
1 parent 36d4462 commit 805154b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lisa/transformers/kernel_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import re
from dataclasses import dataclass, field
import time
from typing import Any, Dict, List, Optional, Type, cast

from assertpy.assertpy import assert_that
Expand All @@ -15,6 +16,7 @@
from lisa.operating_system import Posix, Ubuntu
from lisa.secret import PATTERN_HEADTAIL, add_secret
from lisa.tools import Uname
from lisa.tools.reboot import Reboot
from lisa.transformers.deployment_transformer import (
DeploymentTransformer,
DeploymentTransformerSchema,
Expand Down Expand Up @@ -157,6 +159,11 @@ def _internal_run(self) -> Dict[str, Any]:
self._log.info(f"installed kernel version: {installed_kernel_version}")
kernel_version = self._node.execute("uname -r").stdout
self._log.info(f"current kernel version2: {kernel_version}")
time.sleep(100)
self._node.close()
reboot = self._node.tools[Reboot]
reboot.reboot()

# for ubuntu cvm kernel, there is no menuentry added into grub file when
# the installer's type is "source", it needs to add the menuentry into grub
# file. Otherwise, the node might not boot into the new kernel especially
Expand Down

0 comments on commit 805154b

Please sign in to comment.