Skip to content

Commit

Permalink
Do not restart network if the installation has been started via a SSH…
Browse files Browse the repository at this point in the history
… connection
  • Loading branch information
schubi2 committed Jul 14, 2014
1 parent d6c05ed commit 9fe5f35
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/modules/Lan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -616,11 +616,15 @@ def Write
)
)
end

if LanItems.force_restart
NetworkService.Restart
else
NetworkService.ReloadOrRestart
unless Linuxrc.usessh
# Second stage has been called by yast.ssh via
# ssh. So we should not restart network cause systemctl
# hangs in that case. (bnc#885640)
if LanItems.force_restart
NetworkService.Restart
else
NetworkService.ReloadOrRestart
end
end
Builtins.sleep(sl)
end
Expand Down

0 comments on commit 9fe5f35

Please sign in to comment.