Class: Installation::MinimalInstallation

Inherits:
Object
  • Object
show all
Includes:
Singleton, Yast::Logger
Defined in:
src/lib/installation/minimal_installation.rb

Overview

Wrapper around minimal installation configuration.

Now supported only in autoyast

Instance Method Summary collapse

Instance Method Details

#enabledObject Also known as: enabled?



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'src/lib/installation/minimal_installation.rb', line 12

def enabled
  return @enabled unless @enabled.nil?

  Yast.import "Mode"
  if Yast::Mode.autoinst
    Yast.import "AutoinstGeneral"
    @enabled = Yast::AutoinstGeneral.minimal_configuration?
  else
    @enabled = false
  end

  log.info "Minimal installation enabled?: #{@enabled}"

  @enabled
end