Make sure tmpfiles.d snippet is in place after replica install

This commit is contained in:
Alexander Bokovoy 2017-07-13 10:34:49 +03:00
parent ed08e3296d
commit fe61781bfa
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,34 @@
From 76cc115c53c3a9c5f594083ff4c4452479070021 Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabinsk@redhat.com>
Date: Tue, 11 Jul 2017 12:41:38 +0200
Subject: [PATCH] replica install: drop-in IPA specific config to tmpfiles.d
While server installation and upgrade code configures the IPA specific
tmpfiles location and creates relevant directories, the replica
installer code path is covered incompletely and one step is missing.
https://pagure.io/freeipa/issue/7053
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
---
ipaserver/install/server/replicainstall.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
index 4f28de25b..814925de1 100644
--- a/ipaserver/install/server/replicainstall.py
+++ b/ipaserver/install/server/replicainstall.py
@@ -1515,6 +1515,9 @@ def install(installer):
# remove the extracted replica file
remove_replica_info_dir(installer)
+ # Make sure the files we crated in /var/run are recreated at startup
+ tasks.configure_tmpfiles()
+
# Everything installed properly, activate ipa service.
services.knownservices.ipa.enable()
--
2.13.0

View File

@ -69,7 +69,7 @@
Name: freeipa
Version: %{VERSION}
Release: 3%{?dist}
Release: 4%{?dist}
Summary: The Identity, Policy and Audit system
Group: System Environment/Base
@ -85,6 +85,7 @@ Patch0002: 0002-Fix-IP-Address-Checks.patch
Patch0003: 0003-python-netifaces-update-to-reflect-upstream-changes.patch
Patch0004: 0004-ipa-sam-use-own-private-structure-not-ldapsam_privat.patch
Patch0005: 0005-ipa-sam-use-smbldap_set_bind_callback-for-Samba-4.7-.patch
Patch0006: 0006-replica-install-drop-in-ipa-specific-config.patch
BuildRequires: openldap-devel
# For KDB DAL version, make explicit dependency so that increase of version
@ -1615,6 +1616,9 @@ fi
%endif # with_ipatests
%changelog
* Thu Jul 13 2017 Alexander Bokovoy <abokovoy@redhat.com> - 4.5.2-4
- Make sure tmpfiles.d snippet for replica is in place after install
* Mon Jul 10 2017 Alexander Bokovoy <abokovoy@redhat.com> - 4.5.2-3
- Fix build with Samba 4.7.0-RC1
- Increase java stack for rhino calls to get around crashes on ppc64-le