add a hack to preload the sss nss library
This commit is contained in:
parent
69f66ab017
commit
ed41d49e30
|
@ -0,0 +1,19 @@
|
||||||
|
diff --git a/tools/appliance-creator b/tools/appliance-creator
|
||||||
|
index c5f75f2..1708431 100755
|
||||||
|
--- a/tools/appliance-creator
|
||||||
|
+++ b/tools/appliance-creator
|
||||||
|
@@ -160,7 +160,14 @@ def main():
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
||||||
|
+def do_nss_sss_hack():
|
||||||
|
+ import ctypes as forgettable
|
||||||
|
+ hack = forgettable._dlopen('libnss_sss.so.2')
|
||||||
|
+ del forgettable
|
||||||
|
+ return hack
|
||||||
|
+
|
||||||
|
if __name__ == "__main__":
|
||||||
|
+ hack = do_nss_sss_hack()
|
||||||
|
sys.exit(main())
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
Summary: Tools for building Appliances
|
Summary: Tools for building Appliances
|
||||||
Name: appliance-tools
|
Name: appliance-tools
|
||||||
Version: 007.8
|
Version: 007.8
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://thincrust.org/
|
URL: http://thincrust.org/
|
||||||
|
@ -16,6 +16,7 @@ URL: http://thincrust.org/
|
||||||
# git checkout appliance-tools-007.8
|
# git checkout appliance-tools-007.8
|
||||||
# make dist
|
# make dist
|
||||||
Source0: appliance-tools-%{version}.tar.bz2
|
Source0: appliance-tools-%{version}.tar.bz2
|
||||||
|
Patch0: appliance-tools-nss.hack
|
||||||
Requires: livecd-tools >= 020 curl rsync kpartx
|
Requires: livecd-tools >= 020 curl rsync kpartx
|
||||||
Requires: zlib
|
Requires: zlib
|
||||||
Requires: qemu-img
|
Requires: qemu-img
|
||||||
|
@ -34,6 +35,7 @@ See http://thincrust.net for more details.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
|
@ -61,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%{python_sitelib}/ec2convert/*.pyc
|
%{python_sitelib}/ec2convert/*.pyc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 21 2014 Dennis Gilmore <dennis@ausil.us> - 007.8-4
|
||||||
|
- add a hack to preload the sss nss library
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.8-3
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 007.8-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue