Skip to content

Commit

Permalink
Configure bootloader during AutoYaST upgrade according to the profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Jul 18, 2014
1 parent f9e0ca8 commit 93f490b
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions src/clients/inst_autosetup_upgrade.rb
Expand Up @@ -51,13 +51,16 @@ def main
_("Configure General Settings "),
_("Execute pre-install user scripts"),
_("Set up language"),
_("Configure Software selections")
_("Configure Software selections"),
_("Configure Bootloader")
]

@progress_descriptions = [
_("Configuring general settings..."),
_("Executing pre-install user scripts..."),
_("Configuring Software selections...")
_("Setting up language..."),
_("Configuring Software selections..."),
_("Configuring Bootloader...")
]

Progress.New(
Expand Down Expand Up @@ -379,6 +382,33 @@ def main
end
end

#Bootloader
# FIXME: De-duplicate with inst_autosetup
return :abort if Popup.ConfirmAbort(:painless) if UI.PollInput == :abort
Progress.NextStage

BootCommon.getLoaderType(true)
Bootloader.Import(
AI2Export(Ops.get_map(Profile.current, "bootloader", {}))
)
BootCommon.DetectDisks
Builtins.y2debug("autoyast: Proposing - fix")
Bootloader.Propose
Builtins.y2debug("autoyast: Proposing done")

# SLES only
# FIXME: really needed for upgrade?
if Builtins.haskey(Profile.current, "kdump")
Call.Function(
"kdump_auto",
["Import", Ops.get_map(Profile.current, "kdump", {})]
)
end

# FIXME: really needed for upgrade?
LanUdevAuto.Import(Ops.get_map(Profile.current, "networking", {}))


# Backup
Builtins.y2internal("Backup: %1", Ops.get(Profile.current, "backup"))
Installation.update_backup_modified = Ops.get_boolean(
Expand Down

0 comments on commit 93f490b

Please sign in to comment.