• Home
  • Raw
  • Download

Lines Matching full:kernel

12 _KERNEL_A = {'name': 'KERN-A', 'kernel': 2, 'root': 3}
13 _KERNEL_B = {'name': 'KERN-B', 'kernel': 4, 'root': 5}
17 # Time to wait for new kernel to be marked successful after auto update.
37 def _cgpt(flag, kernel, host=None): argument
42 @param kernel: The kernel we want to interact with.
47 return int(_run(['cgpt', 'show', '-n', '-i', str(kernel['kernel']), flag,
52 Returns the (<active>, <inactive>) kernel state as a pair.
68 Return the kernel that has priority for the next boot.
77 def get_kernel_success(kernel, host=None): argument
79 Return boolean success flag for the specified kernel.
81 @param kernel: Information of the given kernel, either _KERNEL_A
86 return _cgpt('-S', kernel, host) != 0
88 def get_kernel_tries(kernel, host=None): argument
89 """Return tries count for the specified kernel.
91 @param kernel: Information of the given kernel, either _KERNEL_A
96 return _cgpt('-T', kernel, host)
101 Ensure the next kernel to boot is the expected kernel.
106 @param inactive_kernel: Indicates if the expected kernel is the inactive
107 kernel (True) or the active kernel (False).
108 @returns the next kernel.
115 'The kernel for next boot is %s, but %s was expected.' %
122 """Verifies that we fully booted into the expected kernel state.
124 This method both verifies that we booted using the correct kernel
125 state and that the OS has marked the kernel as good.
127 @param expected_kernel: kernel that we are verifying with,
134 # Figure out the newly active kernel.
138 # Kernel crash reports should be wiped between test runs, but
142 # Kernel crash reports will NOT be present if the crash happened
144 kernel_crashes = glob.glob('/var/spool/crash/kernel.*.kcrash')
147 logging.debug('Found %d kernel crash reports:',
150 # kernel.20131207.005945.12345.0.kcrash