Skip to content

Commit

Permalink
Merge pull request #312 from jsrain/bnc793065
Browse files Browse the repository at this point in the history
keep kernel cmdline options during live installation (bsc#793065)
  • Loading branch information
jsrain committed Jan 8, 2015
2 parents bedfb01 + 5d84422 commit 56df679
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 13 additions & 1 deletion library/system/src/modules/Kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ def ExtractCmdlineParameters(line)
discardlist = Builtins.add(discardlist, "ramdisk_size")
end

# get rid of live-installer-specific parameters
if Mode.live_installation
discardlist.push("initrd", "ramdisk_size", "ramdisk_blocksize", "liveinstall", "splash", "quiet", "lang")
end

# backdoor to re-enable update on UL/SLES
if Builtins.contains(cmdlist, "suse_update")
discardlist = Builtins.add(discardlist, "suse_update")
Expand Down Expand Up @@ -247,7 +252,14 @@ def ExtractCmdlineParameters(line)
def ParseInstallationKernelCmdline
@cmdline_parsed = true
return if !(Stage.initial || Stage.cont)
tmp = Convert.to_string(SCR.Read(path(".etc.install_inf.Cmdline")))
# live installation does not create /etc/install.inf (bsc#793065)
if Mode.live_installation
# 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
tmp = Convert.to_string(SCR.Read(path(".target.string"), "/proc/cmdline"))
else
tmp = Convert.to_string(SCR.Read(path(".etc.install_inf.Cmdline")))
end

Builtins.y2milestone(
"cmdline from install.inf is: %1",
Expand Down
5 changes: 5 additions & 0 deletions package/yast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 7 10:55:13 UTC 2015 - jsrain@suse.cz

- keep kernel cmdline options during live installation (bsc#793065)

-------------------------------------------------------------------
Thu Dec 18 19:55:46 UTC 2014 - lslezak@suse.cz

Expand Down

0 comments on commit 56df679

Please sign in to comment.