Skip to content

Commit

Permalink
Copy udev rules if modified by write of the profile
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed May 20, 2020
1 parent 7618729 commit 52fccdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/network/clients/save_network.rb
Expand Up @@ -84,7 +84,7 @@ def adjust_for_network_disks(file)
NETWORK_MANAGER = "/etc/NetworkManager".freeze

def CopyConfiguredNetworkFiles
return if Mode.autoinst && !NetworkAutoYast.instance.keep_net_config?
return if Mode.autoinst && !Lan.autoinst.copy_network?

log.info(
"Copy network configuration files from 1st stage into installed system"
Expand Down Expand Up @@ -283,11 +283,11 @@ def configure_hosts
# It creates a proposal in case of common installation. In case of AY
# installation it does full import of <networking> section
def configure_lan
NetworkAutoYast.instance.configure_lan if Mode.autoinst
copy_udev_rules if Mode.autoinst && NetworkAutoYast.instance.configure_lan

# FIXME: Really make sense to configure it in autoinst mode? At least the
# proposal should be done and checked after lan configuration and in case
# that a bridge configuratio is present in the profile it should be
# that a bridge configuration is present in the profile it should be
# skipped or even only done in case of missing `networking -> interfaces`
# section
NetworkAutoconfiguration.instance.configure_virtuals
Expand Down

0 comments on commit 52fccdb

Please sign in to comment.