Skip to content

Commit

Permalink
replace mkinitrd with dracut
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 6, 2024
1 parent d4f39d7 commit ed82117
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lib/y2s390/dialogs/mkinitrd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
module Y2S390
module Dialogs
class Mkinitrd < ::UI::Dialog
CMD = "/sbin/mkinitrd".freeze
CMD = ["/usr/bin/dracut", "--force"].freeze

def dialog_content
textdomain "s390"
Label(_("Running mkinitrd."))
Label(_("Running dracut."))
end

def self.run
Expand All @@ -16,7 +16,7 @@ def self.run

def run
create_dialog
Yast::Execute.on_target(CMD)
Yast::Execute.on_target(*CMD)
close_dialog
end
end
Expand Down
4 changes: 2 additions & 2 deletions src/modules/ZFCPController.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def Write
if !Mode.installation
if @disk_configured
# popup label
UI.OpenDialog(Label(_("Running mkinitrd.")))
UI.OpenDialog(Label(_("Running dracut.")))

command = "/sbin/mkinitrd"
command = "/usr/bin/dracut --force"
Builtins.y2milestone("Running command %1", command)
ret = SCR.Execute(path(".target.bash"), command)
Builtins.y2milestone("Exit code: %1", ret)
Expand Down

0 comments on commit ed82117

Please sign in to comment.