Skip to content

Commit

Permalink
keep kernel cmdline options during live installation (bsc#793065)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Jan 7, 2015
1 parent bedfb01 commit 73433f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions library/system/src/modules/Kernel.rb
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", "vga", "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 @@ -248,6 +253,10 @@ 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
tmp = Convert.to_string(SCR.Read(path(".target.string"), "/proc/cmdline"))
end

Builtins.y2milestone(
"cmdline from install.inf is: %1",
Expand Down
5 changes: 5 additions & 0 deletions package/yast2.changes
@@ -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 73433f5

Please sign in to comment.