lib/Utils/Backends.pm

Backends

SYNOPSIS

use Utils::Backends It defines various functions that allows to check for different backend or console types. It exports CONSOLES and BACKEND

use_ssh_serial_console

Selects the root-ssh and saves it to SERIALDEV

is_remote_backend

Returns true if the current instance is running as remote backend

has_ttys

Returns true if the current instance is using ttys

has_serial_over_ssh

Returns true if the current instance is using a serial through ssh

is_hyperv

Returns true if the current instance is running as hyperv backend

is_hyperv_in_gui

Returns true if the current instance is running as hyperv gui backend

is_svirt_except_s390x

Returns true if the current instance is running as svirt backend except s390x

is_pvm

Returns true if the current instance is running as PowerVM backend 'spvm' or 'hmc_pvm'