Skip to content

Commit

Permalink
Enable wicked debug
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed May 7, 2018
1 parent 4fc4e1e commit 680cfce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/network/clients/save_network.rb
Expand Up @@ -329,7 +329,20 @@ def save_network
copy_from_instsys
configure_target

enable_wicked_debug if debug_wicked?

nil
end

def enable_wicked_debug
log.info("Enabling wicked debug")
SCR.Write(path(".sysconfig.network.config.WICKED_DEBUG"), "all")
SCR.Write(path(".sysconfig.network.config.WAIT_FOR_INTERFACES"), "90")
SCR.Write(path(".sysconfig.network.config"),nil)
end

def debug_wicked?
Linuxrc.InstallInf("Cmdline").to_s.split.include?("wicked.debug=1")
end
end
end

0 comments on commit 680cfce

Please sign in to comment.