Skip to content

Commit

Permalink
set root in cmdline only while new installation
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 3, 2024
1 parent aede79b commit fe53867
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/bootloader/systemdboot.rb
Expand Up @@ -205,7 +205,11 @@ def write_sysconfig(prewrite: false)
def create_menue_entries
# writing kernel parameter to /etc/kernel/cmdline
File.open(File.join(Yast::Installation.destdir, CMDLINE), "w+") do |fw|
fw.puts("root=#{Yast::BootStorage.root_partitions.first.name} #{kernel_params.serialize}")
if Yast::Stage.initial # while new installation only
fw.puts("root=#{Yast::BootStorage.root_partitions.first.name} #{kernel_params.serialize}")
else # root entry is already available
fw.puts(kernel_params.serialize)
end
end

begin
Expand Down

0 comments on commit fe53867

Please sign in to comment.