Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure-ovs: generate profiles directly in /run
Up until now, configure-ovs would use nmcli to generate the profiles in /etc/NetworkManager/system-connections and then at the very end it would move them to /run/NetworkManager/system-connections The problem with this is that if configure-ovs was killed due to a hard power off, it could leave half baked profiles in /etc preventing a subsequent reboot from reaching a network-online state and running configure-ovs again. This changes makes use of the --temporary and --offline flags of nmcli to generate the profiles directly in /run to prevent that problem. If configure-ovs is explicitly configured to generate profiles in /etc it would then move them at the very end to /etc. This is subject to the problem state above but since it is not the default let's not worry too much about it. Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>
- Loading branch information
Showing
1 changed file
with
82 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters