Skip to content

Commit

Permalink
use agent to read if edd is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 10, 2014
1 parent 2f92c1b commit f08a10f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/include/bootloader/grub2/misc.rb
Expand Up @@ -426,10 +426,8 @@ def grub_LocationProposal
(Mode.autoinst || Mode.autoupgrade) && no_boot_key
grub_DetectDisks
# check whether edd is loaded; if not: load it
lsmod_command = "lsmod | grep edd"
lsmod_out = SCR.Execute(path(".target.bash_output"), lsmod_command)
log.info "Command '#{lsmod_command}' output: #{lsmod_out}"
edd_loaded = Ops.get_integer(lsmod_out, "exit", 0) == 0
edd_loaded = SCR.Read(path(".proc.modules"))["edd"]
log.info "edd loaded? #{edd_loaded.inspect}"
if !edd_loaded
command = "/sbin/modprobe edd"
out = SCR.Execute(path(".target.bash_output"), command)
Expand Down

0 comments on commit f08a10f

Please sign in to comment.