Skip to content

Commit

Permalink
writing /etc/kernel/cmdline
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 3, 2023
1 parent ea95273 commit cb6df8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/bootloader/systemdboot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def write_sysconfig(prewrite: false)

def create_menue_entries
cmdline_file = File.join(Yast::Installation.destdir, "/etc/kernel/cmdline")
if Stage.initial
if Yast::Stage.initial
# kernel-install script needs the "root=<device>" entry in kernel parameters.
File.open(cmdline_file, "w+") do |fw|
fw.puts("root=#{Yast::BootStorage.boot_partitions.first.name}")
Expand All @@ -150,7 +150,7 @@ def create_menue_entries
end
end
end
if Stage.initial
if Yast::Stage.initial
File.delete(cmdline_file)
end
end
Expand Down

0 comments on commit cb6df8f

Please sign in to comment.