Skip to content

Commit

Permalink
modify behavior of Kernel to works better in agama without install.inf
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 22, 2024
1 parent 237b6a5 commit 4d2a9c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/system/src/modules/Kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ def ParseInstallationKernelCmdline
@cmdline_parsed = true
return if !(Stage.initial || Stage.cont)

# live installation does not create /etc/install.inf (bsc#793065)
tmp = if Mode.live_installation
# Check if /etc/install.inf exists
tmp = if SCR.Dir(path("etc.install_inf")).empty?
# not using dedicated agent in order to use the same parser for cmdline
# independently on whether it comes from /proc/cmdline or /etc/install.inf
Convert.to_string(SCR.Read(path(".target.string"), "/proc/cmdline"))
SCR.Read(path(".target.string"), "/proc/cmdline").to_s
else
Convert.to_string(SCR.Read(path(".etc.install_inf.Cmdline")))
SCR.Read(path(".etc.install_inf.Cmdline")).to_s
end

Builtins.y2milestone(
Expand Down

0 comments on commit 4d2a9c3

Please sign in to comment.