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
27
28
29
30
31
# 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 "Profile"
    profile = Yast::Profile.current
    @enabled = if profile["general"] && profile["general"]["minimal-configuration"]
      true
    else
      false
    end
  else
    @enabled = false
  end

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

  @enabled
end