Class: Yast::AutoinstFunctionsClass
- Inherits:
-
Module
- Object
- Module
- Yast::AutoinstFunctionsClass
- Defined in:
- ../../src/modules/AutoinstFunctions.rb
Overview
Helper methods to be used on autoinstallation.
Instance Method Summary (collapse)
- - (Object) main
-
- (Boolean) second_stage_required?
Determines if the second stage should be executed.
Instance Method Details
- (Object) main
4 5 6 7 8 9 10 11 |
# File '../../src/modules/AutoinstFunctions.rb', line 4 def main textdomain "installation" Yast.import "Stage" Yast.import "Mode" Yast.import "AutoinstConfig" Yast.import "ProductControl" end |
- (Boolean) second_stage_required?
Determines if the second stage should be executed
Checks Mode, AutoinstConfig and ProductControl to decide if it's needed.
FIXME: It's almost equal to InstFunctions.second_stage_required? defined in yast2-installation, but exists to avoid a circular dependency between packages (yast2-installation -> autoyast2-installation).
23 24 25 26 27 28 29 30 31 |
# File '../../src/modules/AutoinstFunctions.rb', line 23 def second_stage_required? return false unless Stage.initial if (Mode.autoinst || Mode.autoupgrade) && !AutoinstConfig.second_stage Builtins.y2milestone("Autoyast: second stage is disabled") false else ProductControl.RunRequired("continue", Mode.mode) end end |