Class: Installation::InstKeyboardRootPassword

Inherits:
Object
  • Object
show all
Includes:
Yast::I18n, Yast::Logger, Yast::UIShortcuts
Defined in:
src/lib/installation/clients/inst_keyboard_root_password.rb

Overview

This library provides a simple dialog for setting

  • the password for the system administrator (root)
  • the keyboard layout This dialog does not write the password to the system, only stores it in UsersSimple module, to be written during inst_finish.

Instance Method Summary collapse

Instance Method Details

#runObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'src/lib/installation/clients/inst_keyboard_root_password.rb', line 36

def run
  Yast.import "UI"
  Yast.import "Mode"
  Yast.import "CWM"

  textdomain "installation"

  # We do not need to create a wizard dialog in installation, but it's
  # helpful when testing all manually on a running system
  Yast::Wizard.CreateDialog if separate_wizard_needed?

  Yast::Wizard.EnableAbortButton

  ret = Yast::CWM.show(
    content,
    # Title for root-password dialogue
    caption: _("Keyboard Layout and Password for the System Administrator \"root\"")
  )

  Yast::Wizard.CloseDialog if separate_wizard_needed?

  ret
end