URL: https://github.com/freeipa/freeipa/pull/895
Author: stlaz
 Title: #895: Ensure network is online prior to an upgrade
Action: opened

PR body:
"""
Fedora system upgrades don't necessary require the network to be up.
However, we do, so we have to make sure the network is online before
performing an upgrade.

https://pagure.io/freeipa/issue/7039
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/895/head:pr895
git checkout pr895
From 642c25669ad37e066707758b0d745b2fa582d2df Mon Sep 17 00:00:00 2001
From: Stanislav Laznicka <slazn...@redhat.com>
Date: Mon, 26 Jun 2017 14:21:41 +0200
Subject: [PATCH] Ensure network is online prior to an upgrade

Fedora system upgrades don't necessary require the network to be up.
However, we do, so we have to make sure the network is online before
performing an upgrade.

https://pagure.io/freeipa/issue/7039
---
 freeipa.spec.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/freeipa.spec.in b/freeipa.spec.in
index 9fbe5ad006..cf630f8f7d 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -1017,6 +1017,10 @@ fi
 python2 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1
 
 if [  $? -eq 0 ]; then
+    # This is necessary for Fedora system upgrades which by default
+    # work with the network being offline
+    /bin/systemctl start network-online.target
+
     # This must be run in posttrans so that updates from previous
     # execution that may no longer be shipped are not applied.
     /usr/sbin/ipa-server-upgrade --quiet >/dev/null || :
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to