original_docstring: Checks that script is called with root permissions and that OS is booted via UEFI.
docstring: Checks that script is called with root permissions and that OS is booted via UEFI.
docstring_tokens: Checks that script is called with root permissions and that OS is booted via UEFI .
code: def check_requirements(self) -> None:
          """Checks that script is called with root permissions and that OS is booted via UEFI."""
          if os.getuid() != 0:
              raise secbootctl.core.AppError('root permissions required')
          elif not Path(Env.EFI_BOOT_MODE_CHECK_PATH).is_dir():
              raise secbootctl.core.AppError('UEFI boot mode required')
code_tokens: def check_requirements ( self ) -> None : if os . getuid ( ) != 0 : raise secbootctl . core . AppError ( 'root permissions required' ) elif not Path ( Env . EFI_BOOT_MODE_CHECK_PATH ) . is_dir ( ) : raise secbootctl . core . AppError ( 'UEFI boot mode required' )
short_docstring: Checks that script is called with root permissions and that OS is booted via UEFI.
short_docstring_tokens: Checks that script is called with root permissions and that OS is booted via UEFI .
comment: """Checks that script is called with root permissions and that OS is booted via UEFI."""