Change-Id: I86039a94093ad251fd605b1ca8aab9fcc4784f13
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5536
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: initramfs |
2 | 2 |
Name: initramfs |
3 | 3 |
Version: 2.0 |
4 |
-Release: 3%{?dist} |
|
4 |
+Release: 4%{?dist} |
|
5 | 5 |
Source0: fscks.conf |
6 | 6 |
License: Apache License |
7 | 7 |
Group: System Environment/Base |
... | ... |
@@ -19,7 +19,7 @@ install -D -m644 %{SOURCE0} %{buildroot}%{_sysconfdir}/dracut.conf.d/ |
19 | 19 |
install -d -m755 %{buildroot}%{_localstatedir}/lib/initramfs/kernel |
20 | 20 |
|
21 | 21 |
%define watched_path %{_sbindir} %{_libdir}/udev/rules.d %{_libdir}/systemd/system /lib/modules %{_sysconfdir}/dracut.conf.d |
22 |
-%define watched_pkgs e2fsprogs, ostree, systemd, kpartx, device-mapper-multipath |
|
22 |
+%define watched_pkgs e2fsprogs, systemd, kpartx, device-mapper-multipath |
|
23 | 23 |
|
24 | 24 |
%define removal_action() rm -rf %{_localstatedir}/lib/rpm-state/initramfs |
25 | 25 |
|
... | ... |
@@ -111,6 +111,8 @@ echo "initramfs" %{version}-%{release} "postun" >&2 |
111 | 111 |
%dir %{_localstatedir}/lib/initramfs/kernel |
112 | 112 |
|
113 | 113 |
%changelog |
114 |
+* Mon Aug 27 2018 Dheeraj Shetty <dheerajs@vmware.com> 2.0-4 |
|
115 |
+- Remove watching ostree |
|
114 | 116 |
* Thu Jul 27 2017 Bo Gan <ganb@vmware.com> 2.0-3 |
115 | 117 |
- Move all states to one directory |
116 | 118 |
* Fri May 26 2017 Bo Gan <ganb@vmware.com> 2.0-2 |
117 | 119 |
deleted file mode 100644 |
... | ... |
@@ -1,21 +0,0 @@ |
1 |
-+++ b/libhif/hif-self-test.c 2017-08-24 14:38:49.224151180 -0700 |
|
2 |
-@@ -1102,12 +1102,12 @@ |
|
3 |
- g_log_set_fatal_mask (NULL, G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL); |
|
4 |
- |
|
5 |
- /* tests go here */ |
|
6 |
-- g_test_add_func ("/libhif/repos{gpg-asc}", hif_repos_gpg_asc_func); |
|
7 |
-- g_test_add_func ("/libhif/repos{gpg-wrong-asc}", hif_repos_gpg_wrong_asc_func); |
|
8 |
-- g_test_add_func ("/libhif/repos{gpg-no-asc}", hif_repos_gpg_no_asc_func); |
|
9 |
-- g_test_add_func ("/libhif/repos", hif_repos_func); |
|
10 |
-- g_test_add_func ("/libhif/repos{gpg-no-pubkey}", hif_repos_gpg_no_pubkey_func); |
|
11 |
-- g_test_add_func ("/libhif/context", hif_context_func); |
|
12 |
-+ //g_test_add_func ("/libhif/repos{gpg-asc}", hif_repos_gpg_asc_func); |
|
13 |
-+ //g_test_add_func ("/libhif/repos{gpg-wrong-asc}", hif_repos_gpg_wrong_asc_func); |
|
14 |
-+ //g_test_add_func ("/libhif/repos{gpg-no-asc}", hif_repos_gpg_no_asc_func); |
|
15 |
-+ //g_test_add_func ("/libhif/repos", hif_repos_func); |
|
16 |
-+ //g_test_add_func ("/libhif/repos{gpg-no-pubkey}", hif_repos_gpg_no_pubkey_func); |
|
17 |
-+ //g_test_add_func ("/libhif/context", hif_context_func); |
|
18 |
- g_test_add_func ("/libhif/lock", hif_lock_func); |
|
19 |
- g_test_add_func ("/libhif/lock[threads]", hif_lock_threads_func); |
|
20 |
- g_test_add_func ("/libhif/source", ch_test_source_func); |
21 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,100 +0,0 @@ |
1 |
-Summary: Simple package manager built on top of hawkey and librepo |
|
2 |
-Name: libhif |
|
3 |
-Version: 0.2.3 |
|
4 |
-Release: 1%{?dist} |
|
5 |
-License: LGPLv2+ |
|
6 |
-URL: https://github.com/hughsie/libhif |
|
7 |
-Source0: http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz |
|
8 |
-%define sha1 libhif=b5cec26e848e2fb1caf36ec9fcd4c9019e86b566 |
|
9 |
-Patch0: libhif-makecheck.patch |
|
10 |
-Vendor: VMware, Inc. |
|
11 |
-Distribution: Photon |
|
12 |
- |
|
13 |
-BuildRequires: glib-devel >= 2.16.1 |
|
14 |
-BuildRequires: libtool |
|
15 |
-BuildRequires: gtk-doc |
|
16 |
-BuildRequires: gobject-introspection-devel |
|
17 |
-BuildRequires: hawkey-devel >= 0.4.6 |
|
18 |
-BuildRequires: rpm-devel >= 4.11.0 |
|
19 |
-BuildRequires: librepo-devel >= 1.7.11 |
|
20 |
-BuildRequires: libsolv-devel |
|
21 |
-BuildRequires: popt-devel |
|
22 |
-BuildRequires: python2-libs |
|
23 |
-BuildRequires: python2 |
|
24 |
-BuildRequires: gobject-introspection-python |
|
25 |
-BuildRequires: openssl-devel |
|
26 |
- |
|
27 |
-Requires: openssl |
|
28 |
-Requires: librepo |
|
29 |
-Requires: libsolv |
|
30 |
-Requires: gobject-introspection |
|
31 |
-Requires: hawkey |
|
32 |
-Requires: rpm-libs |
|
33 |
-Requires: glib >= 2.16.1 |
|
34 |
- |
|
35 |
-%description |
|
36 |
-This library provides a simple interface to hawkey and librepo and is currently |
|
37 |
-used by PackageKit and rpm-ostree. |
|
38 |
- |
|
39 |
-%package devel |
|
40 |
-Summary: GLib Libraries and headers for libhif |
|
41 |
-Requires: libhif |
|
42 |
-Provides: pkgconfig(libhif) |
|
43 |
- |
|
44 |
-%description devel |
|
45 |
-GLib headers and libraries for libhif. |
|
46 |
- |
|
47 |
-%prep |
|
48 |
-%setup -q |
|
49 |
-%patch0 -p1 |
|
50 |
-%build |
|
51 |
- |
|
52 |
-./autogen.sh --prefix=/usr \ |
|
53 |
- LDFLAGS='-L/usr/lib -lrpm -lrepo' \ |
|
54 |
- --enable-gtk-doc \ |
|
55 |
- --disable-static \ |
|
56 |
- --disable-silent-rules \ |
|
57 |
- --disable-dependency-tracking \ |
|
58 |
- |
|
59 |
-make %{?_smp_mflags} |
|
60 |
- |
|
61 |
-%install |
|
62 |
-make install DESTDIR=$RPM_BUILD_ROOT |
|
63 |
-rm -f $RPM_BUILD_ROOT%{_libdir}/libhif*.la |
|
64 |
- |
|
65 |
-%check |
|
66 |
-make check |
|
67 |
- |
|
68 |
-%post -p /sbin/ldconfig |
|
69 |
- |
|
70 |
-%postun -p /sbin/ldconfig |
|
71 |
- |
|
72 |
-%files |
|
73 |
-%doc README.md AUTHORS NEWS COPYING |
|
74 |
-%{_libdir}/libhif.so.1* |
|
75 |
-%{_libdir}/girepository-1.0/*.typelib |
|
76 |
- |
|
77 |
-%files devel |
|
78 |
-%{_libdir}/libhif.so |
|
79 |
-%{_libdir}/pkgconfig/libhif.pc |
|
80 |
-%dir %{_includedir}/libhif |
|
81 |
-%{_includedir}/libhif/*.h |
|
82 |
-%{_datadir}/gtk-doc |
|
83 |
-%{_datadir}/gir-1.0/*.gir |
|
84 |
- |
|
85 |
-%changelog |
|
86 |
-* Thu Aug 19 2017 Chang Lee <changlee@vmware.com> 0.2.3-1 |
|
87 |
-- Updated to 0.2.3 |
|
88 |
-- Disabled GLib-GObject-CRITICAL tests due to Segmentation fault in all tests |
|
89 |
-* Mon Dec 19 2016 Xiaolin Li <xiaolinl@vmware.com> 0.2.2-5 |
|
90 |
-- BuildRequires libsolv-devel. |
|
91 |
-* Thu Nov 17 2016 Alexey Makhalov <amakhalov@vmware.com> 0.2.2-4 |
|
92 |
-- Use rpm-libs at runtime |
|
93 |
-* Thu Oct 06 2016 ChangLee <changlee@vmware.com> 0.2.2-3 |
|
94 |
-- Modified %check |
|
95 |
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.2.2-2 |
|
96 |
-- GA - Bump release of all rpms |
|
97 |
-* Tue Feb 23 2016 Kumar Kaushik <kaushikk@vmware.com> 0.2.2-1 |
|
98 |
-- Updated to new version. |
|
99 |
-* Wed Jun 17 2015 Anish Swaminathan <anishs@vmware.com> 0.2.0-1 |
|
100 |
-- Updated version |
2 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,168 +0,0 @@ |
1 |
-Summary: Git for operating system binaries |
|
2 |
-Name: ostree |
|
3 |
-Version: 2017.4 |
|
4 |
-Release: 3%{?dist} |
|
5 |
-Source0: http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.gz |
|
6 |
-%define sha1 ostree=eb3546c552849ace2f4e3701bc0b826611f569cc |
|
7 |
-Source1: 91-ostree.preset |
|
8 |
-License: LGPLv2+ |
|
9 |
-URL: http://live.gnome.org/OSTree |
|
10 |
-Vendor: VMware, Inc. |
|
11 |
-Distribution: Photon |
|
12 |
-BuildRequires: git |
|
13 |
-BuildRequires: which |
|
14 |
-BuildRequires: libgsystem-devel |
|
15 |
-BuildRequires: xz-devel |
|
16 |
-BuildRequires: gtk-doc |
|
17 |
-BuildRequires: e2fsprogs-devel |
|
18 |
-BuildRequires: libsoup-devel |
|
19 |
-BuildRequires: autogen |
|
20 |
-Requires: fuse |
|
21 |
-Requires: libgsystem |
|
22 |
-Requires: gpgme |
|
23 |
-Requires: libassuan |
|
24 |
-Requires: libgpg-error |
|
25 |
-Requires: systemd |
|
26 |
-Requires: libsoup |
|
27 |
-Requires: mkinitcpio |
|
28 |
-Requires: dracut |
|
29 |
-Requires: dracut-tools |
|
30 |
-Requires: libarchive |
|
31 |
-Requires: libgsystem |
|
32 |
-BuildRequires: attr-devel |
|
33 |
-BuildRequires: fuse-devel |
|
34 |
-BuildRequires: libgpg-error-devel |
|
35 |
-BuildRequires: python2-libs |
|
36 |
-BuildRequires: python2 |
|
37 |
-BuildRequires: gobject-introspection |
|
38 |
-BuildRequires: gobject-introspection-devel |
|
39 |
-BuildRequires: gobject-introspection-python |
|
40 |
-BuildRequires: gpgme-devel |
|
41 |
-BuildRequires: libcap-devel |
|
42 |
-BuildRequires: libsoup |
|
43 |
-BuildRequires: libsoup-devel |
|
44 |
-BuildRequires: mkinitcpio |
|
45 |
-BuildRequires: dracut |
|
46 |
-BuildRequires: dracut-tools |
|
47 |
-BuildRequires: systemd-devel |
|
48 |
-BuildRequires: libarchive |
|
49 |
-BuildRequires: libarchive-devel |
|
50 |
- |
|
51 |
-%description |
|
52 |
-OSTree is a tool for managing bootable, immutable, versioned |
|
53 |
-filesystem trees. While it takes over some of the roles of tradtional |
|
54 |
-"package managers" like dpkg and rpm, it is not a package system; nor |
|
55 |
-is it a tool for managing full disk images. Instead, it sits between |
|
56 |
-those levels, offering a blend of the advantages (and disadvantages) |
|
57 |
-of both. |
|
58 |
- |
|
59 |
-%package devel |
|
60 |
-Summary: Development headers for %{name} |
|
61 |
-Group: Development/Libraries |
|
62 |
-Requires: %{name} = %{version}-%{release} |
|
63 |
- |
|
64 |
-%description devel |
|
65 |
-The %{name}-devel package includes the header files for the %{name} library |
|
66 |
- |
|
67 |
-%prep |
|
68 |
-%setup -n %{name}-%{version} |
|
69 |
-(git clone git://github.com/GNOME/libglnx libglnx && cd libglnx && git checkout 602fdd9) |
|
70 |
-(git clone https://github.com/mendsley/bsdiff bsdiff && cd bsdiff && git checkout 1edf9f6) |
|
71 |
- |
|
72 |
-%build |
|
73 |
-env NOCONFIGURE=1 ./autogen.sh |
|
74 |
-%configure \ |
|
75 |
- --disable-silent-rules \ |
|
76 |
- --enable-gtk-doc \ |
|
77 |
- --with-dracut \ |
|
78 |
- --with-mkinitcpio \ |
|
79 |
- --enable-libsoup-client-certs \ |
|
80 |
- --prefix=%{_prefix} |
|
81 |
-make %{?_smp_mflags} |
|
82 |
- |
|
83 |
-%install |
|
84 |
-make install DESTDIR=%{buildroot} INSTALL="install -p -c" |
|
85 |
-find %{buildroot} -name '*.la' -delete |
|
86 |
-install -D -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/systemd/system-preset/91-ostree.preset |
|
87 |
-install -vdm 755 %{buildroot}/etc/ostree/remotes.d |
|
88 |
-mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/ |
|
89 |
-cp -R %{buildroot}/lib/systemd/system/*.service %{buildroot}%{_prefix}/lib/systemd/system/ |
|
90 |
-rm -rf %{buildroot}/lib |
|
91 |
- |
|
92 |
-%check |
|
93 |
-make %{?_smp_mflags} check |
|
94 |
- |
|
95 |
-%clean |
|
96 |
-rm -rf %{buildroot} |
|
97 |
- |
|
98 |
-%post |
|
99 |
-%systemd_post ostree-remount.service |
|
100 |
- |
|
101 |
-%preun |
|
102 |
-%systemd_preun ostree-remount.service |
|
103 |
- |
|
104 |
-%postun |
|
105 |
-%systemd_postun_with_restart ostree-remount.service |
|
106 |
- |
|
107 |
-%files |
|
108 |
-%doc COPYING README.md |
|
109 |
-%{_bindir}/ostree |
|
110 |
-%{_bindir}/rofiles-fuse |
|
111 |
-%{_libdir}/*.so.1* |
|
112 |
-%{_mandir}/man*/*.gz |
|
113 |
-%{_prefix}/lib/systemd/system-preset/91-ostree.preset |
|
114 |
-%{_prefix}/lib/systemd/system/ostree*.service |
|
115 |
-%dir %{_prefix}/lib/dracut/modules.d/*ostree |
|
116 |
-%{_prefix}/lib/dracut/modules.d/98ostree/* |
|
117 |
-%{_sysconfdir}/grub.d/*ostree |
|
118 |
-%{_sysconfdir}/dracut.conf.d/ostree.conf |
|
119 |
-%{_sysconfdir}/ostree-mkinitcpio.conf |
|
120 |
-%dir %{_sysconfdir}/ostree/remotes.d |
|
121 |
-%{_libdir}/girepository-*/OSTree-*.typelib |
|
122 |
-%{_libexecdir}/libostree/grub2* |
|
123 |
-%{_libdir}/initcpio/* |
|
124 |
-%{_libdir}/ostree/ostree-prepare-root |
|
125 |
-%{_libdir}/ostree/ostree-remount |
|
126 |
-%exclude %{_libexecdir}/libostree/ostree-trivial-httpd |
|
127 |
- |
|
128 |
- |
|
129 |
-%files devel |
|
130 |
-%{_includedir}/* |
|
131 |
-%{_libdir}/lib*.so |
|
132 |
-%{_libdir}/pkgconfig/* |
|
133 |
-%dir %{_datadir}/gtk-doc/html/ostree |
|
134 |
-%{_datadir}/gtk-doc/html/ostree/* |
|
135 |
-%{_datadir}/ostree/* |
|
136 |
-%{_datadir}/gir-1.0/OSTree-1.0.gir |
|
137 |
- |
|
138 |
-%changelog |
|
139 |
-* Thu Aug 23 2018 Tapas Kundu <tkundu@vmware.com> 2017.4-3 |
|
140 |
-- Corrected the git clone path for libglnx. |
|
141 |
-* Mon May 08 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2017.4-2 |
|
142 |
-- Use libgsystem-devel to build instead of libgsystem. |
|
143 |
-* Mon Apr 17 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2017.4-1 |
|
144 |
-- Update to 2017.4 |
|
145 |
-* Wed Feb 01 2017 Xiaolin Li <xiaolinl@vmware.com> 2015.7-10 |
|
146 |
-- libglnx: checkout commit 900b25f. |
|
147 |
-- bsdiff: checkout commit 1edf9f6. |
|
148 |
-* Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2015.7-9 |
|
149 |
-- BuildRequired attr-devel and libgpg-error-devel |
|
150 |
-* Fri Nov 18 2016 Anish Swaminathan <anishs@vmware.com> 2015.7-8 |
|
151 |
-- Change systemd dependency |
|
152 |
-* Thu Nov 17 2016 Alexey Makhalov <amakhalov@vmware.com> 2015.7-7 |
|
153 |
-- Use %setup instead of %autosetup |
|
154 |
-* Fri Oct 07 2016 ChangLee <changlee@vmware.com> 2015.7-6 |
|
155 |
-- Modified %check |
|
156 |
-* Thu May 26 2016 Divya Thaluru <dthaluru@vmware.com> 2015.7-5 |
|
157 |
-- Fixed logic to restart the active services after upgrade |
|
158 |
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2015.7-4 |
|
159 |
-- GA - Bump release of all rpms |
|
160 |
-* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 2015.7-3 |
|
161 |
-- Remove commented steps. |
|
162 |
-* Sat Jul 11 2015 Touseef Liaqat <tliaqat@vmware.com> 2015.7-2 |
|
163 |
-- Add dracut, mkinitcpio and libsoup as dependencies |
|
164 |
-* Wed Jun 17 2015 Anish Swaminathan <anishs@vmware.com> 2015.7-1 |
|
165 |
-- Updated the version |
|
166 |
-* Tue Nov 25 2014 Divya Thaluru <dthaluru@vmware.com> 2014.11-1 |
|
167 |
-- Initial build. First version |
|
168 |
- |
169 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,28 +0,0 @@ |
1 |
-diff -dupr a/Makefile-tests.am b/Makefile-tests.am |
|
2 |
-+++ b/Makefile-tests.am 2017-09-16 01:16:03.069641948 +0000 |
|
3 |
-@@ -55,7 +55,7 @@ $(foreach pkg,$(testpackages),$(eval $(c |
|
4 |
- |
|
5 |
- tests/common/compose/yum/repo/repodata/repomd.xml: $(testpackages) |
|
6 |
- (cd tests/common/compose/yum/repo && \ |
|
7 |
-- createrepo_c --no-database $$PWD) |
|
8 |
-+ createrepo --no-database $$PWD) |
|
9 |
- |
|
10 |
- tests/common/compose/test-repo.repo: tests/common/compose/test-repo.repo.in \ |
|
11 |
- tests/common/compose/yum/repo/repodata/repomd.xml |
|
12 |
-@@ -79,7 +79,6 @@ tests_check_postprocess_LDADD = $(PKGDEP |
|
13 |
- |
|
14 |
- tests/check/test-compose.sh: tests/common/compose/test-repo.repo |
|
15 |
- |
|
16 |
--tests/check/test-ucontainer.sh: tests/common/compose/test-repo.repo |
|
17 |
- |
|
18 |
- uninstalled_test_programs = \ |
|
19 |
- tests/check/jsonutil \ |
|
20 |
-@@ -90,7 +89,6 @@ uninstalled_test_programs = \ |
|
21 |
- uninstalled_test_scripts = \ |
|
22 |
- tests/check/test-basic.sh \ |
|
23 |
- tests/check/test-compose.sh \ |
|
24 |
-- tests/check/test-ucontainer.sh \ |
|
25 |
- $(NULL) |
|
26 |
- |
|
27 |
- uninstalled_test_extra_programs = dbus-run-session |
28 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,12 +0,0 @@ |
1 |
-diff -dupr a/tests/check/test-compose.sh b/tests/check/test-compose.sh |
|
2 |
-+++ b/tests/check/test-compose.sh 2017-09-15 23:38:06.424734259 +0000 |
|
3 |
-@@ -31,7 +31,7 @@ export RPMOSTREE_UNINSTALLED_PKGLIBDIR=$ |
|
4 |
- |
|
5 |
- composedir=${commondir}/compose |
|
6 |
- |
|
7 |
--arch=$(arch) |
|
8 |
-+arch=x86_64 |
|
9 |
- if ! test "${arch}" = x86_64; then |
|
10 |
- echo 1>&2 "$0 can be run only on x86_64"; echo "1..0" ; exit 77 |
|
11 |
- fi |
12 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,42 +0,0 @@ |
1 |
-fail() { local _red="\\033[1;31m" |
|
2 |
- local _normal="\\033[0;39m" |
|
3 |
- [ -n "$*" ] && printf "${_red}$*${_normal}\n" |
|
4 |
- exit 1 |
|
5 |
-} |
|
6 |
-print_message() { |
|
7 |
- printf "%s" "${1}" |
|
8 |
-} |
|
9 |
-print_failed_in_red() { |
|
10 |
- local _red="\\033[1;31m" |
|
11 |
- local _normal="\\033[0;39m" |
|
12 |
- printf "${_red}%s${_normal}\n" "FAILURE" |
|
13 |
- exit 2 |
|
14 |
-} |
|
15 |
-print_succeeded_in_green() { |
|
16 |
- local _green="\\033[1;32m" |
|
17 |
- local _normal="\\033[0;39m" |
|
18 |
- printf "${_green}%s${_normal}\n" "SUCCESS" |
|
19 |
- return 0 |
|
20 |
-} |
|
21 |
-run_command() { |
|
22 |
- # $1 = message |
|
23 |
- # $2 = command |
|
24 |
- # $3 = log file |
|
25 |
- local _start=$(date +%s) |
|
26 |
- local _msg="${1}" |
|
27 |
- local _cmd="${2}" |
|
28 |
- local _logfile="${3}" |
|
29 |
- if [ "/dev/null" == "${_logfile}" ]; then |
|
30 |
- print_message "${_msg}: " |
|
31 |
- eval ${_cmd} >> ${_logfile} 2>&1 && print_succeeded_in_green || print_failed_in_red |
|
32 |
- else |
|
33 |
- print_message "${_msg}: " |
|
34 |
- printf "\n%s\n\n" "### ${_msg} ###" >> ${_logfile} 2>&1 |
|
35 |
- eval ${_cmd} >> ${_logfile} 2>&1 && print_succeeded_in_green || print_failed_in_red |
|
36 |
- fi |
|
37 |
- |
|
38 |
- local _end=$(date +%s) |
|
39 |
- local _elapsed=$((_end-_start)) |
|
40 |
- echo "Elapsed time: ${_elapsed} seconds" >> ${_logfile} 2>&1 |
|
41 |
- return 0 |
|
42 |
-} |
43 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,193 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-################################################# |
|
3 |
-# Title: mk-ostree-host # |
|
4 |
-# Date: 2017-09-22 # |
|
5 |
-# Version: 1.0 # |
|
6 |
-# Author: dheerajs@vmware.com # |
|
7 |
-# Options: # |
|
8 |
-################################################# |
|
9 |
-# Overview |
|
10 |
-# Creating rpm-ostree host raw file |
|
11 |
-# End |
|
12 |
-# |
|
13 |
-set -o errexit # exit if any command returns non true return value |
|
14 |
-set -o nounset # exit if you try to use uninitialised variable |
|
15 |
-PRGNAME=${0##*/} # script name minus the path |
|
16 |
-LOGFILE=/var/log/"${PRGNAME}-$(date +%Y-%m-%d).log" |
|
17 |
-source $(dirname $0)/function.inc |
|
18 |
-NARGS=10 |
|
19 |
-ARGS_PASSED=$# |
|
20 |
-SDA3=/dev/sda3 |
|
21 |
- |
|
22 |
-while [[ $# > 0 ]] |
|
23 |
-do |
|
24 |
- key="$1" |
|
25 |
- shift |
|
26 |
- |
|
27 |
- case $key in |
|
28 |
- -s|--FILE_SIZE) |
|
29 |
- FILE_SIZE="$1" |
|
30 |
- shift |
|
31 |
- ;; |
|
32 |
- -n|--IMG_NAME) |
|
33 |
- RAW_IMAGE_NAME="$1".raw |
|
34 |
- shift |
|
35 |
- ;; |
|
36 |
- -i|--IP_ADDR) |
|
37 |
- IP_ADDR="$1" |
|
38 |
- shift |
|
39 |
- ;; |
|
40 |
- -r|--REPO_REF) |
|
41 |
- REPO_REF="$1" |
|
42 |
- shift |
|
43 |
- ;; |
|
44 |
- -m|--MOUNT_POINT) |
|
45 |
- MOUNT_POINT="$1" |
|
46 |
- shift |
|
47 |
- ;; |
|
48 |
- -h|--help) |
|
49 |
- echo 'Usage:' |
|
50 |
- echo '-s|--FILE_SIZE :Total Size in GB. Make sure you have this space in your disk' |
|
51 |
- echo '-n|--RAW_IMAGE_NAME :Name of the Raw file' |
|
52 |
- echo '-i|--IP_ADDR :rpm-ostree server IP address' |
|
53 |
- echo '-r|--REPO_REF :rpm-ostree ref ex. photon/2.0/x86_64/base' |
|
54 |
- echo '-m|--MOUNT_POINT :mount point ex. /mnt/photon-root' |
|
55 |
- exit 0 |
|
56 |
- ;; |
|
57 |
- *) |
|
58 |
- # unknown option |
|
59 |
- ;; |
|
60 |
- esac |
|
61 |
-done |
|
62 |
- |
|
63 |
-if [ $ARGS_PASSED -ne $NARGS ]; then |
|
64 |
- echo "Error in the arguments passed. Try ./mk-ostree-host.sh -h for help" |
|
65 |
- exit 1 |
|
66 |
-fi |
|
67 |
- |
|
68 |
-function mount_devices { |
|
69 |
- run_command "Mount devices in deployment" "mount -t bind -o bind,defaults /dev ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/dev" "${LOGFILE}" |
|
70 |
- run_command "Mount devices in deployment" "mount -t devpts -o gid=5,mode=620 devpts ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/dev/pts" "${LOGFILE}" |
|
71 |
- run_command "Mount devices in deployment" "mount -t tmpfs -o defaults tmpfs ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/dev/shm" "${LOGFILE}" |
|
72 |
- run_command "Mount devices in deployment" "mount -t proc -o defaults proc ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/proc" "${LOGFILE}" |
|
73 |
- run_command "Mount devices in deployment" "mount -t bind -o bind,defaults /run ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/run" "${LOGFILE}" |
|
74 |
- run_command "Mount devices in deployment" "mount -t sysfs -o defaults sysfs ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/sys" "${LOGFILE}" |
|
75 |
- run_command "Mount Boot" "mount --bind ${MOUNT_POINT}/boot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/boot" "${LOGFILE}" |
|
76 |
- run_command "Mount Sysroot" "mount --bind ${MOUNT_POINT} ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/sysroot" "${LOGFILE}" |
|
77 |
-} |
|
78 |
-function unmount_devices { |
|
79 |
- sync |
|
80 |
- sync |
|
81 |
- sync |
|
82 |
- run_command "Unmount Boot" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/boot" "${LOGFILE}" |
|
83 |
- run_command "Unmount sysroot" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/sysroot" "${LOGFILE}" |
|
84 |
- run_command "Unmount devices in deployment" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/sys" "${LOGFILE}" |
|
85 |
- run_command "Unmount devices in deployment" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/run" "${LOGFILE}" |
|
86 |
- run_command "Unmount devices in deployment" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/proc" "${LOGFILE}" |
|
87 |
- run_command "Unmount devices in deployment" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/dev/shm" "${LOGFILE}" |
|
88 |
- run_command "Unmount devices in deployment" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/dev/pts" "${LOGFILE}" |
|
89 |
- run_command "Unmount devices in deployment" "umount ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/dev" "${LOGFILE}" |
|
90 |
-} |
|
91 |
- |
|
92 |
-function create_systemd_tmpfile { |
|
93 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/home" "${LOGFILE}" |
|
94 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/roothome" "${LOGFILE}" |
|
95 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/lib/rpm" "${LOGFILE}" |
|
96 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/opt" "${LOGFILE}" |
|
97 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/srv" "${LOGFILE}" |
|
98 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/userlocal" "${LOGFILE}" |
|
99 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/mnt" "${LOGFILE}" |
|
100 |
- run_command "Create systemd-tmpfiles" "systemd-tmpfiles --create --boot --root=${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 --prefix=/var/spool/mail" "${LOGFILE}" |
|
101 |
-} |
|
102 |
- |
|
103 |
-function unmount_loop_devices { |
|
104 |
- sync |
|
105 |
- sync |
|
106 |
- sync |
|
107 |
- run_command "Unmounting p2" "umount -l ${SYSROOT_BOOT_PARTITION}" "${LOGFILE}" |
|
108 |
- run_command "Unmounting p3" "umount -l ${ROOT_PARTITION}" "${LOGFILE}" |
|
109 |
- run_command "kpartx loop0" "kpartx -d ${DISK_DEVICE}" "${LOGFILE}" |
|
110 |
- run_command "delete loop0" "losetup -d ${DISK_DEVICE}" "${LOGFILE}" |
|
111 |
-} |
|
112 |
- |
|
113 |
-function rpm_ostree_init_deploy { |
|
114 |
- run_command "Init the Ostree Repo" "ostree --repo=${MOUNT_POINT}/repo init --mode=archive-z2" "${LOGFILE}" |
|
115 |
- run_command "Ostree Init FS" "ostree admin --sysroot=${MOUNT_POINT} init-fs ${MOUNT_POINT}" "${LOGFILE}" |
|
116 |
- run_command "Add Remote" "ostree remote add --repo=${MOUNT_POINT}/ostree/repo --set=gpg-verify=false photon http://${IP_ADDR}" "${LOGFILE}" |
|
117 |
- run_command "Pull Repo" "ostree pull --repo=${MOUNT_POINT}/ostree/repo photon ${REPO_REF}" "${LOGFILE}" |
|
118 |
- run_command "Init-OS" "ostree admin --sysroot=${MOUNT_POINT} os-init photon" "${LOGFILE}" |
|
119 |
- run_command "Deploy Ostree" "ostree admin --sysroot=${MOUNT_POINT} deploy --os=photon photon:${REPO_REF}" "${LOGFILE}" |
|
120 |
-} |
|
121 |
- |
|
122 |
-function install_generate_grub { |
|
123 |
- run_command "Install grub" "chroot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 bash -c \"grub2-install ${DISK_DEVICE}\"" "${LOGFILE}" |
|
124 |
- run_command "Generate grub.cfg file" "chroot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 bash -c \"grub2-mkconfig -o /boot/grub2/grub.cfg\"" "${LOGFILE}" |
|
125 |
- run_command "Set boot volume in grub config file" "chroot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 bash -c \"ostree admin instutil set-kargs root=${ROOT_PARTITION}\"" "${LOGFILE}" |
|
126 |
- run_command "Replace ${ROOT_PARTITION} with ${SDA3} in cfg file" "sed -i 's:${ROOT_PARTITION}:${SDA3}:' ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/boot/loader/grub.cfg" "${LOGFILE}" |
|
127 |
- run_command "Replace ${ROOT_PARTITION} with ${SDA3} in loader conf file" "sed -i 's:${ROOT_PARTITION}:${SDA3}:' ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/boot/loader/entries/ostree-photon-0.conf" "${LOGFILE}" |
|
128 |
- run_command "Remove grub config from /boot/grub2" "chroot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 bash -c \"rm /boot/grub2/grub.cfg\"" "${LOGFILE}" |
|
129 |
- run_command "Create a link file to /boot/loader/grub.cfg from /boot/grub2" "chroot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 bash -c \"cd /boot/grub2/ && ln -sf ../loader/grub.cfg ./grub.cfg\"" "${LOGFILE}" |
|
130 |
-} |
|
131 |
- |
|
132 |
-function update_fstab { |
|
133 |
- run_command "Update /etc/fstab in chroot for /dev/sda3" "echo \"/dev/sda3 / ext4 defaults 1 1 \" >> ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/etc/fstab" "${LOGFILE}" |
|
134 |
- run_command "Update /etc/fstab in chroot for /dev/sda2" "echo \"/dev/sda2 /boot ext4 defaults 1 2 \" >> ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/etc/fstab" "${LOGFILE}" |
|
135 |
-} |
|
136 |
- |
|
137 |
-function create_password { |
|
138 |
- run_command "Echo password to a file. Change this password" "echo \"root:changeme\" >> ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/root/mypwdfile" "${LOGFILE}" |
|
139 |
- run_command "Change Password of root to changeme" "chroot ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0 bash -c \"cat root/mypwdfile | chpasswd\"" "${LOGFILE}" |
|
140 |
- run_command "Delete the temporary mypwdfile" "rm ${MOUNT_POINT}/ostree/deploy/photon/deploy/${id}.0/root/mypwdfile" "${LOGFILE}" |
|
141 |
-} |
|
142 |
- |
|
143 |
-run_command "Install gptfdisk kpartx and device-mapper-devel" "tdnf -y install gptfdisk kpartx device-mapper-devel device-mapper-libs" "${LOGFILE}" |
|
144 |
- |
|
145 |
-echo "Creating raw disk file " $RAW_IMAGE_NAME " of size " $FILE_SIZE |
|
146 |
-dd if=/dev/zero of=$RAW_IMAGE_NAME bs=1 seek=$(($FILE_SIZE * 1024 * 1024 * 1024)) count=0 |
|
147 |
-chmod 755 $RAW_IMAGE_NAME |
|
148 |
- |
|
149 |
-echo "Associating loopdevice to raw disk" |
|
150 |
-DISK_DEVICE=`losetup --show -f $RAW_IMAGE_NAME` |
|
151 |
- |
|
152 |
-echo "Creating partition on raw disk" |
|
153 |
-sgdisk -n 1::+2M -n 2::+300M -n 3: -p $DISK_DEVICE |
|
154 |
-sgdisk -t1:ef02 $DISK_DEVICE |
|
155 |
- |
|
156 |
-echo "Mapping device partition to loop device" |
|
157 |
-kpartx -avs $DISK_DEVICE |
|
158 |
- |
|
159 |
-DEVICE_NAME=`echo $DISK_DEVICE|cut -c6- ` |
|
160 |
- |
|
161 |
-echo "Adding file system to device partition" |
|
162 |
-mkfs -t ext4 /dev/mapper/${DEVICE_NAME}p2 |
|
163 |
-mkfs -t ext4 /dev/mapper/${DEVICE_NAME}p3 |
|
164 |
- |
|
165 |
-ROOT_PARTITION=/dev/mapper/${DEVICE_NAME}p3 |
|
166 |
-SYSROOT_BOOT_PARTITION=/dev/mapper/${DEVICE_NAME}p2 |
|
167 |
- |
|
168 |
-SYSROOT_BOOT=${MOUNT_POINT}/boot |
|
169 |
-SYSROOT_OSTREE=${MOUNT_POINT}/ostree |
|
170 |
- |
|
171 |
-run_command "Making Mount Point Directory" "mkdir -p ${MOUNT_POINT}" "${LOGFILE}" |
|
172 |
-run_command "Mount Root" "mount ${ROOT_PARTITION} ${MOUNT_POINT}" "$LOGFILE" |
|
173 |
-run_command "Making Sysroot Boot Directory" "mkdir -p ${SYSROOT_BOOT}" "${LOGFILE}" |
|
174 |
-run_command "Mount Sysroot Boot" "mount ${SYSROOT_BOOT_PARTITION} ${SYSROOT_BOOT}" "${LOGFILE}" |
|
175 |
-run_command "Make repo directory for ostree" "mkdir -p ${MOUNT_POINT}/repo" "${LOGFILE}" |
|
176 |
- |
|
177 |
-rpm_ostree_init_deploy |
|
178 |
- |
|
179 |
-id=$(cat ${MOUNT_POINT}/ostree/repo/refs/remotes/photon/${REPO_REF}) |
|
180 |
- |
|
181 |
-create_systemd_tmpfile |
|
182 |
- |
|
183 |
-mount_devices |
|
184 |
- |
|
185 |
-install_generate_grub |
|
186 |
- |
|
187 |
-update_fstab |
|
188 |
- |
|
189 |
-create_password |
|
190 |
- |
|
191 |
-unmount_devices |
|
192 |
- |
|
193 |
-unmount_loop_devices |
194 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,16 +0,0 @@ |
1 |
-+++ libdnf/CMakeLists.txt.1 2017-04-20 22:37:56.727077768 +0000 |
|
2 |
-@@ -26,10 +26,11 @@ |
|
3 |
- |
|
4 |
- # hawkey dependencies |
|
5 |
- find_package (PkgConfig REQUIRED) |
|
6 |
-+SET (CMAKE_MODULE_PATH /usr/share/cmake/Modules) |
|
7 |
-+find_package (LibSolv 0.6.26 REQUIRED COMPONENTS ext) |
|
8 |
- SET (CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) |
|
9 |
- PKG_CHECK_MODULES(GLIB gio-unix-2.0>=2.44.0 REQUIRED) |
|
10 |
- FIND_LIBRARY (RPMDB_LIBRARY NAMES rpmdb) |
|
11 |
--find_package (LibSolv 0.6.21 REQUIRED COMPONENTS ext) |
|
12 |
- if (ENABLE_RHSM_SUPPORT) |
|
13 |
- pkg_check_modules (RHSM REQUIRED librhsm) |
|
14 |
- include_directories (${RHSM_INCLUDE_DIRS}) |
|
15 |
- |
16 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,156 +0,0 @@ |
1 |
-Summary: Commit RPMs to an OSTree repository |
|
2 |
-Name: rpm-ostree |
|
3 |
-Version: 2017.4 |
|
4 |
-Release: 8%{?dist} |
|
5 |
-Source0: rpm-ostree-%{version}.tar.gz |
|
6 |
-%define sha1 rpm-ostree=d34882a455afbf0b57617c0962725276967e838a |
|
7 |
-Source1: libglnx-0c52d85.tar.gz |
|
8 |
-%define sha1 libglnx=137767ad957f37d6210aaa6b28e4333a42aa9fad |
|
9 |
-Source2: libdnf-2086268.tar.gz |
|
10 |
-%define sha1 libdnf=4e913da416c61a5525f94ef09f38c658179e3e25 |
|
11 |
-Source3: mk-ostree-host.sh |
|
12 |
-Source4: function.inc |
|
13 |
-Patch0: rpm-ostree-libdnf-build.patch |
|
14 |
-Patch1: Set-arch.patch |
|
15 |
-Patch2: Makefile-test.patch |
|
16 |
-License: LGPLv2+ |
|
17 |
-URL: https://github.com/projectatomic/rpm-ostree |
|
18 |
-Vendor: VMware, Inc. |
|
19 |
-Distribution: Photon |
|
20 |
-# We always run autogen.sh |
|
21 |
-BuildRequires: autoconf |
|
22 |
-BuildRequires: automake |
|
23 |
-BuildRequires: check |
|
24 |
-BuildRequires: cmake |
|
25 |
-BuildRequires: libtool |
|
26 |
-BuildRequires: git |
|
27 |
-BuildRequires: json-glib-devel |
|
28 |
-BuildRequires: gtk-doc |
|
29 |
-BuildRequires: libcap-devel |
|
30 |
-BuildRequires: ostree-devel |
|
31 |
-BuildRequires: libgsystem-devel |
|
32 |
-BuildRequires: docbook-xsl |
|
33 |
-BuildRequires: libxslt |
|
34 |
-BuildRequires: gobject-introspection-devel |
|
35 |
-BuildRequires: openssl-devel |
|
36 |
-BuildRequires: rpm-devel >= 4.11.0 |
|
37 |
-BuildRequires: librepo-devel >= 1.7.11 |
|
38 |
-BuildRequires: attr-devel |
|
39 |
-BuildRequires: python2-libs |
|
40 |
-BuildRequires: python2 |
|
41 |
-BuildRequires: gobject-introspection-python |
|
42 |
-BuildRequires: autogen |
|
43 |
-BuildRequires: libsolv-devel >= 0.6.26-3 |
|
44 |
-BuildRequires: systemd-devel |
|
45 |
-BuildRequires: libarchive-devel |
|
46 |
-BuildRequires: gperf |
|
47 |
-BuildRequires: which |
|
48 |
-BuildRequires: popt-devel |
|
49 |
-BuildRequires: createrepo_c |
|
50 |
-BuildRequires: jq |
|
51 |
-BuildRequires: photon-release |
|
52 |
-BuildRequires: photon-repos |
|
53 |
-BuildRequires: bubblewrap |
|
54 |
-BuildRequires: dbus |
|
55 |
- |
|
56 |
-Requires: libcap |
|
57 |
-Requires: librepo |
|
58 |
-Requires: openssl |
|
59 |
-Requires: ostree |
|
60 |
-Requires: libgsystem |
|
61 |
-Requires: json-glib |
|
62 |
-Requires: libsolv >= 0.6.26-3 |
|
63 |
-Requires: bubblewrap |
|
64 |
- |
|
65 |
-%description |
|
66 |
-This tool takes a set of packages, and commits them to an OSTree |
|
67 |
-repository. At the moment, it is intended for use on build servers. |
|
68 |
- |
|
69 |
-%package devel |
|
70 |
-Summary: Development headers for rpm-ostree |
|
71 |
-Group: Development/Libraries |
|
72 |
-Requires: %{name} = %{version}-%{release} |
|
73 |
- |
|
74 |
-%description devel |
|
75 |
-Includes the header files for the rpm-ostree library. |
|
76 |
- |
|
77 |
-%package host |
|
78 |
-Summary: File for rpm-ostree-host creation |
|
79 |
-Group: Development/Libraries |
|
80 |
-Requires: %{name} = %{version}-%{release} |
|
81 |
- |
|
82 |
-%description host |
|
83 |
-Includes the scripts for rpm-ostree host creation |
|
84 |
- |
|
85 |
-%prep |
|
86 |
-%setup -q |
|
87 |
-tar xf /usr/src/photon/SOURCES/libglnx-0c52d85.tar.gz --no-same-owner |
|
88 |
-tar xf /usr/src/photon/SOURCES/libdnf-2086268.tar.gz --no-same-owner |
|
89 |
-%patch0 -p0 |
|
90 |
-%patch1 -p1 |
|
91 |
-%patch2 -p1 |
|
92 |
- |
|
93 |
-%build |
|
94 |
-sed -i '/-DBUILD_SHARED_LIBS/a -DWITH_MAN=OFF \\' configure.ac |
|
95 |
-env NOCONFIGURE=1 ./autogen.sh |
|
96 |
-%configure --disable-silent-rules --enable-gtk-doc |
|
97 |
-make %{?_smp_mflags} |
|
98 |
- |
|
99 |
-%install |
|
100 |
-make install DESTDIR=%{buildroot} INSTALL="install -p -c" |
|
101 |
-find %{buildroot} -name '*.la' -delete |
|
102 |
-install -d %{buildroot}%{_bindir}/rpm-ostree-host |
|
103 |
-install -p -m 755 -D %{SOURCE3} %{buildroot}%{_bindir}/rpm-ostree-host |
|
104 |
-install -p -m 644 -D %{SOURCE4} %{buildroot}%{_bindir}/rpm-ostree-host |
|
105 |
-%check |
|
106 |
-make check |
|
107 |
- |
|
108 |
-%files |
|
109 |
-%{_bindir}/* |
|
110 |
-%{_libdir}/%{name}/ |
|
111 |
-%{_mandir}/man*/*.gz |
|
112 |
-%{_libdir}/*.so.1* |
|
113 |
-%{_libdir}/girepository-1.0/*.typelib |
|
114 |
-%{_sysconfdir}/dbus-1/system.d/* |
|
115 |
-%{_prefix}%{_unitdir}/*.service |
|
116 |
-%{_libexecdir}/* |
|
117 |
-%{_datadir}/dbus-1/system-services/* |
|
118 |
- |
|
119 |
-%files devel |
|
120 |
-%{_libdir}/lib*.so |
|
121 |
-%{_includedir}/* |
|
122 |
-%{_libdir}/pkgconfig/* |
|
123 |
-%{_datadir}/gtk-doc/html/* |
|
124 |
-%{_datadir}/gir-1.0/*-1.0.gir |
|
125 |
- |
|
126 |
-%files host |
|
127 |
-%{_bindir}/rpm-ostree-host/mk-ostree-host.sh |
|
128 |
-%{_bindir}/rpm-ostree-host/function.inc |
|
129 |
- |
|
130 |
-%changelog |
|
131 |
-* Mon Jun 04 2018 Xiaolin Li <xiaolinl@vmware.com> 2017.4-8 |
|
132 |
-- Rebuild with createrepo_c after removed createrepo. |
|
133 |
-* Tue Oct 03 2017 Dheeraj Shetty <dheerajs@vmware.com> 2017.4-7 |
|
134 |
-- Remove hardcoded /dev/loop0 |
|
135 |
-* Tue Sep 26 2017 Dheeraj Shetty <dheerajs@vmware.com> 2017.4-6 |
|
136 |
-- Fix unmount in the mk-ostree-host |
|
137 |
-* Fri Sep 22 2017 Dheeraj Shetty <dheerajs@vmware.com> 2017.4-5 |
|
138 |
-- Add support to generate rpm-ostree host |
|
139 |
-* Fri Sep 15 2017 Dheeraj Shetty <dheerajs@vmware.com> 2017.4-4 |
|
140 |
-- Changes for Makecheck |
|
141 |
-* Thu Aug 03 2017 Xiaolin Li <xiaolinl@vmware.com> 2017.4-3 |
|
142 |
-- Added bubblewrap to requires. |
|
143 |
-* Mon May 08 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2017.4-2 |
|
144 |
-- Use libgsystem-devel to build instead of libgsystem. |
|
145 |
-* Fri Apr 21 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2017.4-1 |
|
146 |
-- Update to 2017.4 |
|
147 |
-* Mon Dec 19 2016 Xiaolin Li <xiaolinl@vmware.com> 2015.7-5 |
|
148 |
-- BuildRequires libsolv-devel. |
|
149 |
-* Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2015.7-4 |
|
150 |
-- BuildRequired attr-devel. |
|
151 |
-* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 2015.7-3 |
|
152 |
-- Modified %check |
|
153 |
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2015.7-2 |
|
154 |
-- GA - Bump release of all rpms |
|
155 |
-* Thu Jun 18 2015 Anish Swaminathan <anishs@vmware.com> 2015.7-1 |
|
156 |
-- Added new version of rpm-ostree |
... | ... |
@@ -18,12 +18,6 @@ |
18 | 18 |
"visible" : true, |
19 | 19 |
"include" : ["minimal"] |
20 | 20 |
}, |
21 |
- "ostree_server" : { |
|
22 |
- "title" : "3. Photon OSTree Server", |
|
23 |
- "file" : "packages_ostree_server.json", |
|
24 |
- "visible" : true, |
|
25 |
- "include" : ["minimal"] |
|
26 |
- }, |
|
27 | 21 |
"appliance" : { |
28 | 22 |
"title" : "Minimal packages to support appliances.", |
29 | 23 |
"file" : "packages_appliance.json", |
... | ... |
@@ -5,5 +5,5 @@ |
5 | 5 |
"libffi","expat","linux","cpio","Linux-PAM","attr","libcap", "systemd","dbus", |
6 | 6 |
"gzip", "sqlite","nspr","nss","popt","lua","rpm","gptfdisk","tar", "librepo", |
7 | 7 |
"hawkey", "python3","python3-libs","pcre","glib", "tdnf", "python3-requests", |
8 |
- "grub2-pc", "grub2-efi", "dracut", "curl", "ostree", "dosfstools"] |
|
8 |
+ "grub2-pc", "grub2-efi", "dracut", "curl", "dosfstools"] |
|
9 | 9 |
} |
10 | 10 |
deleted file mode 100644 |
... | ... |
@@ -1,15 +0,0 @@ |
1 |
-{ |
|
2 |
- "packages": ["gc", "libunistring", "libffi", "libltdl", "gmp", "guile", "openssl", |
|
3 |
- "autogen", "ncurses", "ncurses-compat", "ca-certificates", "libtasn1", "e2fsprogs", "nettle", |
|
4 |
- "bzip2", "e2fsprogs-devel", "xz", "readline", "glibc", "sqlite-libs", |
|
5 |
- "bash", "python2", "python2-libs", "python-xml", "nspr", "gnutls", "filesystem", "libgcc", "krb5", |
|
6 |
- "libassuan", "libxml2", "expat", "gdbm", "openssl-devel", "popt", "curl", |
|
7 |
- "nss", "gpgme", "systemd", "libsolv", "coreutils", "lua", "libgpg-error", |
|
8 |
- "elfutils-libelf", "libcap", "glib", "glib-networking", "file", "Linux-PAM", |
|
9 |
- "kmod", "util-linux", "libstdc++", "attr", "zlib", "rpm", "pcre", "perl", |
|
10 |
- "cyrus-sasl", "libsoup", "libdb", "hawkey", "librepo", "dracut", "libxml2-devel", |
|
11 |
- "libarchive", "apr", "hawkey-devel", "gobject-introspection", "librepo-devel", |
|
12 |
- "rpm-devel", "libarchive-devel", "libgsystem", "dracut-tools", "libsoup-devel", |
|
13 |
- "mkinitcpio", "openldap", "postgresql", "libhif", "json-glib", "apr-util", |
|
14 |
- "ostree", "httpd", "rpm-ostree"] |
|
15 |
-} |
... | ... |
@@ -4,5 +4,5 @@ The [FAQ for Photon OS](https://github.com/vmware/photon/wiki/Frequently-Asked-Q |
4 | 4 |
|
5 | 5 |
Technical information about Photon OS and instructions on how to use it appear in the [Photon OS Administration Guide](https://github.com/vmware/photon/blob/master/docs/photon-admin-guide.md). |
6 | 6 |
|
7 |
-Getting-started guides and how-to articles covering Docker, Mesos, OSTree, VMware platforms, and other technologies appear on the Photon OS [Wiki](https://github.com/vmware/photon/wiki). |
|
7 |
+Getting-started guides and how-to articles covering Docker, Mesos, VMware platforms, and other technologies appear on the Photon OS [Wiki](https://github.com/vmware/photon/wiki). |
|
8 | 8 |
|
... | ... |
@@ -85,7 +85,6 @@ |
85 | 85 |
GCE](#running-a-photon-os-machine-on-gce) |
86 | 86 |
- [Docker Containers](#docker-containers) |
87 | 87 |
- [Kubernetes](#kubernetes) |
88 |
-- [RPM-OSTree](#rpm-ostree) |
|
89 | 88 |
- [Installing Sendmail](#installing-sendmail) |
90 | 89 |
- [Fixing Sendmail If Installed Before an FQDN Was |
91 | 90 |
Set](#fixing-sendmail-if-installed-before-an-fqdn-was-set) |
... | ... |
@@ -115,7 +114,7 @@ This guide describes the fundamentals of administering Photon OS, the open-sourc |
115 | 115 |
|
116 | 116 |
The guide covers the basics of managing packages, controlling services with systemd, setting up networking, initializing Photon OS with cloud-init, running Docker containers, and working with other technologies, such as Kubernetes. The guide also includes a section to get you started using Photon OS quickly and easily. |
117 | 117 |
|
118 |
-Photon OS is a Linux container host optimized for vSphere and cloud-computing platforms such as Amazon Elastic Compute and Google Compute Engine. As a lightweight and extensible operating system, Photon OS works with the most common container formats, including Docker, Rocket, and Garden. Photon OS includes a yum-compatible, package-based lifecycle management system called tdnf. Photon OS optionally works with RPM-OSTree for image-based system versioning. |
|
118 |
+Photon OS is a Linux container host optimized for vSphere and cloud-computing platforms such as Amazon Elastic Compute and Google Compute Engine. As a lightweight and extensible operating system, Photon OS works with the most common container formats, including Docker, Rocket, and Garden. Photon OS includes a yum-compatible, package-based lifecycle management system called tdnf. |
|
119 | 119 |
|
120 | 120 |
When used with development tools and environments such as VMware Fusion, VMware Workstation, HashiCorp (Vagrant and Atlas), and production runtime environments (vSphere, vCloud Air), Photon OS lets you seamlessly migrate container-based applications from development to production. With a small footprint and fast boot and run times, Photon OS is optimized for cloud computing and cloud applications. |
121 | 121 |
|
... | ... |
@@ -802,7 +801,7 @@ Second, set the service to auto-start when the system boots: |
802 | 802 |
|
803 | 803 |
If your application or appliance includes its own HTTP server, you should turn off and disable the HTTP server that comes with Photon OS so that it does not conflict with your own HTTP server. |
804 | 804 |
|
805 |
-To support the option to run RPM-OSTree, the full version of Photon OS runs the <code>httpd.service</code> by default. To stop it and disable it, run the following commands as root: |
|
805 |
+To stop it and disable it, run the following commands as root: |
|
806 | 806 |
|
807 | 807 |
systemctl stop httpd.service |
808 | 808 |
systemctl disable httpd.service |
... | ... |
@@ -1579,18 +1578,6 @@ Photon OS also enables you to run a docker container that, in turn, runs Photon |
1579 | 1579 |
|
1580 | 1580 |
The full version of Photon OS includes Kubernetes so you can manage clusters of containers. For more information, see [Running Kubernetes on Photon OS](https://github.com/vmware/photon/blob/master/docs/kubernetes.md). |
1581 | 1581 |
|
1582 |
-## RPM-OSTree |
|
1583 |
- |
|
1584 |
-RPM-OSTree is a package-aware file tree replication system that can keep Linux machines synchronized with the latest bits in a predictable and reliable way. To maintain consistency across file systems, RPM-OSTree uses a git-like repository that records the changes to any file and replicates them to any subscriber. |
|
1585 |
- |
|
1586 |
-RPM-OSTree lets you compose packages and other configuration options into a file tree on a server. The hosts download the file tree from the server and incrementally upgrade when the file tree changes. In this way, RPM-OSTree delivers identical, predicatable installed systems to solve the problems that commonly plague system administrators as they struggle to maintain a farm of computers with different packages, files, and configurations installed in different order. |
|
1587 |
- |
|
1588 |
-When you install Photon OS from its ISO, it offers two installation options to take advantage of OSTree, a server and a host. The OSTree Host installation option creates a Photon OS instance that obtains its packages from an RPM-OSTree server. The host instance's packages and library are then centrally managed by the server. |
|
1589 |
- |
|
1590 |
-The OSTree Server installation option creates an instance of a server that manages the file system tree of the OSTree hosts. Creating a Photon OSTree Server establishes a new repository and management node for the Photon OS OSTree hosts. The Photon OS OSTree Server then manages the hosts as versioned, atomic entities to simply lifecycle management and security on an enterprise scale. |
|
1591 |
- |
|
1592 |
-For more information, see the extensive sections on RPM-OSTree in the [Photon OS wiki](https://github.com/vmware/photon/wiki). |
|
1593 |
- |
|
1594 | 1582 |
## Installing Sendmail |
1595 | 1583 |
|
1596 | 1584 |
Before you install Sendmail, you should set the fully qualified domain name (FQDN) of your Photon OS machine. |
... | ... |
@@ -1983,4 +1970,3 @@ The following technical articles and guides appear in the [Photon OS wiki](https |
1983 | 1983 |
* Install and Configure Marathon for Mesos Cluster on Photon OS |
1984 | 1984 |
* Install and Configure DCOS CLI for Mesos |
1985 | 1985 |
* Install and Configure Mesos DNS on a Mesos Cluster |
1986 |
-* RPM OSTree Documentation |
1987 | 1986 |
deleted file mode 100644 |
... | ... |
@@ -1,34 +0,0 @@ |
1 |
-# What is OSTree and RPM-OSTree? |
|
2 |
-OSTree is a tool for managing bootable, immutable, versioned filesystem trees. |
|
3 |
- |
|
4 |
-## Photon RPM-OSTree Server |
|
5 |
-During installation from the Photon OS ISO, you can select the `Photon RPM-OSTree Server` option to install Photon OS with the RPM-OSTree components and a minimal repository from which RPM-OSTree Hosts can be created. |
|
6 |
- |
|
7 |
-On RPM-OSTree Server the repo is created at the following location: |
|
8 |
-``` |
|
9 |
-/srv/rpm-ostree/repo |
|
10 |
-``` |
|
11 |
-Here is the base configuration file that creates the repo: |
|
12 |
-``` |
|
13 |
-/srv/rpm-ostree/photon-base.json |
|
14 |
-``` |
|
15 |
-### Updating RPM-OSTree Repo Image |
|
16 |
- |
|
17 |
-You can add or remove packages from the `photon-base.json` file and then run following commands to update the repo with a new commit: |
|
18 |
-``` |
|
19 |
-cd /srv/rpm-ostree |
|
20 |
-rpm-ostree compose tree --repo=/srv/rpm-ostree/repo photon-base.json |
|
21 |
-``` |
|
22 |
-The command above creates a new commit that contains your package-related changes. |
|
23 |
- |
|
24 |
-## RPM-OSTree Host |
|
25 |
- |
|
26 |
-OSTree host is an installation of Photon OS that retrieves the images from RPM-OSTree server during installation. It can get atomic updates from the same server during its lifecycle. |
|
27 |
- |
|
28 |
-## Upgrading the Host Installations |
|
29 |
- |
|
30 |
-Host machines created from RPM-OSTree server can run the following commands to upgrade their host machine to the latest version from the RPM-OSTree server: |
|
31 |
- |
|
32 |
- rpm-ostree upgrade |
|
33 |
- systemctl reboot |
|
34 |
- |
35 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,17 +0,0 @@ |
1 |
-{ |
|
2 |
- "ref": "photon", |
|
3 |
- |
|
4 |
- "repos": ["photon-ostree"], |
|
5 |
- |
|
6 |
- "selinux": false, |
|
7 |
- |
|
8 |
- "bootstrap_packages": ["filesystem"], |
|
9 |
- |
|
10 |
- "packages": ["glibc", "zlib", "binutils", "gmp", "mpfr", "libgcc", "libstdc++","libgomp", |
|
11 |
- "pkg-config", "ncurses", "bash", "bzip2", "cracklib", "cracklib-dicts", "shadow", |
|
12 |
- "procps-ng", "iana-etc", "readline", "coreutils", "bc", "libtool", "inetutils", |
|
13 |
- "findutils", "xz", "grub", "iproute2", "util-linux", "linux", |
|
14 |
- "attr", "libcap", "kmod", "expat", "dbus", "file", |
|
15 |
- "sed", "grep", "cpio", "gzip", "nss-altfiles", |
|
16 |
- "dracut", "dracut-tools", "ostree", "rpm-ostree"] |
|
17 |
-} |
8 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,8 +0,0 @@ |
1 |
-[Service] |
|
2 |
-ExecStart= |
|
3 |
-ExecStart=/usr/sbin/httpd -f /srv/rpm-ostree/ostree-httpd.conf -DFORGROUND |
|
4 |
-ExecReload= |
|
5 |
-ExecReload=/usr/sbin/httpd -f /srv/rpm-ostree/ostree-httpd.conf -k graceful |
|
6 |
-KillSignal=SIGWINCH |
|
7 |
-KillMode=mixed |
|
8 |
-Restart=always |
... | ... |
@@ -4,8 +4,6 @@ |
4 | 4 |
# Author: Touseef Liaqat <tliaqat@vmware.com> |
5 | 5 |
|
6 | 6 |
from installer import Installer |
7 |
-from ostreeinstaller import OstreeInstaller |
|
8 |
-from ostreeserverinstaller import OstreeServerInstaller |
|
9 | 7 |
|
10 | 8 |
class InstallerContainer(object): |
11 | 9 |
def __init__(self, install_config, maxy=0, maxx=0, |
... | ... |
@@ -21,15 +19,7 @@ class InstallerContainer(object): |
21 | 21 |
|
22 | 22 |
def install(self, params): |
23 | 23 |
installer = None |
24 |
- if self.install_config['type'] == "ostree_host": |
|
25 |
- installer = OstreeInstaller(self.install_config, self.maxy, self.maxx, |
|
26 |
- self.iso_installer, self.rpm_path, self.log_path) |
|
27 |
- elif self.install_config['type'] == "ostree_server": |
|
28 |
- installer = OstreeServerInstaller(self.install_config, self.maxy, self.maxx, |
|
29 |
- self.iso_installer, self.rpm_path, |
|
30 |
- self.log_path) |
|
31 |
- else: |
|
32 |
- installer = Installer(self.install_config, self.maxy, self.maxx, |
|
33 |
- self.iso_installer, self.rpm_path, self.log_path) |
|
24 |
+ installer = Installer(self.install_config, self.maxy, self.maxx, |
|
25 |
+ self.iso_installer, self.rpm_path, self.log_path) |
|
34 | 26 |
|
35 | 27 |
return installer.install(params) |
36 | 28 |
deleted file mode 100755 |
... | ... |
@@ -1,25 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-################################################# |
|
3 |
-# Title: mk-ostree-server # |
|
4 |
-# Date: 2015-07-15 # |
|
5 |
-# Version: 1.0 # |
|
6 |
-# Author: tliaqat@vmware.com # |
|
7 |
-# Options: # |
|
8 |
-################################################# |
|
9 |
-# Overview |
|
10 |
-# Install OSTree Server |
|
11 |
-# End |
|
12 |
-# |
|
13 |
- |
|
14 |
-set -o errexit # exit if error...insurance ;) |
|
15 |
-set -o nounset # exit if variable not initalized |
|
16 |
-set +h # disable hashall |
|
17 |
-PRGNAME=${0##*/} # script name minus the path |
|
18 |
-source config.inc # configuration parameters |
|
19 |
-LOGFILE=/var/log/"${PRGNAME}-${LOGFILE}" # set log file name |
|
20 |
- |
|
21 |
-ROOT=$1 |
|
22 |
- |
|
23 |
-mkdir -p ${ROOT}/srv/rpm-ostree |
|
24 |
-ostree --repo=${ROOT}/srv/rpm-ostree/repo init --mode=archive-z2 2>&1 | tee "${LOGFILE}" |
|
25 |
-rpm-ostree compose tree --repo=${ROOT}/srv/rpm-ostree/repo photon-base.json 2>&1 | tee "${LOGFILE}" |
26 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,121 +0,0 @@ |
1 |
-ServerName 127.0.0.1 |
|
2 |
-Listen 80 |
|
3 |
- |
|
4 |
-DocumentRoot /srv/rpm-ostree/repo |
|
5 |
- |
|
6 |
-<Directory "/srv/rpm-ostree/repo"> |
|
7 |
- Options All Indexes FollowSymLinks |
|
8 |
- Order allow,deny |
|
9 |
- Allow from all |
|
10 |
-</Directory> |
|
11 |
- |
|
12 |
-LoadModule authn_file_module /usr/lib/httpd/modules/mod_authn_file.so |
|
13 |
-#LoadModule authn_dbm_module /usr/lib/httpd/modules/mod_authn_dbm.so |
|
14 |
-#LoadModule authn_anon_module /usr/lib/httpd/modules/mod_authn_anon.so |
|
15 |
-#LoadModule authn_dbd_module /usr/lib/httpd/modules/mod_authn_dbd.so |
|
16 |
-#LoadModule authn_socache_module /usr/lib/httpd/modules/mod_authn_socache.so |
|
17 |
-LoadModule authn_core_module /usr/lib/httpd/modules/mod_authn_core.so |
|
18 |
-LoadModule authz_host_module /usr/lib/httpd/modules/mod_authz_host.so |
|
19 |
-LoadModule authz_groupfile_module /usr/lib/httpd/modules/mod_authz_groupfile.so |
|
20 |
-LoadModule authz_user_module /usr/lib/httpd/modules/mod_authz_user.so |
|
21 |
-#LoadModule authz_dbm_module /usr/lib/httpd/modules/mod_authz_dbm.so |
|
22 |
-#LoadModule authz_owner_module /usr/lib/httpd/modules/mod_authz_owner.so |
|
23 |
-#LoadModule authz_dbd_module /usr/lib/httpd/modules/mod_authz_dbd.so |
|
24 |
-LoadModule authz_core_module /usr/lib/httpd/modules/mod_authz_core.so |
|
25 |
-#LoadModule authnz_ldap_module /usr/lib/httpd/modules/mod_authnz_ldap.so |
|
26 |
-#LoadModule authnz_fcgi_module /usr/lib/httpd/modules/mod_authnz_fcgi.so |
|
27 |
-LoadModule access_compat_module /usr/lib/httpd/modules/mod_access_compat.so |
|
28 |
-LoadModule auth_basic_module /usr/lib/httpd/modules/mod_auth_basic.so |
|
29 |
-#LoadModule auth_form_module /usr/lib/httpd/modules/mod_auth_form.so |
|
30 |
-#LoadModule auth_digest_module /usr/lib/httpd/modules/mod_auth_digest.so |
|
31 |
-#LoadModule allowmethods_module /usr/lib/httpd/modules/mod_allowmethods.so |
|
32 |
-#LoadModule file_cache_module /usr/lib/httpd/modules/mod_file_cache.so |
|
33 |
-#LoadModule cache_module /usr/lib/httpd/modules/mod_cache.so |
|
34 |
-#LoadModule cache_disk_module /usr/lib/httpd/modules/mod_cache_disk.so |
|
35 |
-#LoadModule cache_socache_module /usr/lib/httpd/modules/mod_cache_socache.so |
|
36 |
-#LoadModule socache_shmcb_module /usr/lib/httpd/modules/mod_socache_shmcb.so |
|
37 |
-#LoadModule socache_dbm_module /usr/lib/httpd/modules/mod_socache_dbm.so |
|
38 |
-#LoadModule socache_memcache_module /usr/lib/httpd/modules/mod_socache_memcache.so |
|
39 |
-#LoadModule watchdog_module /usr/lib/httpd/modules/mod_watchdog.so |
|
40 |
-#LoadModule macro_module /usr/lib/httpd/modules/mod_macro.so |
|
41 |
-#LoadModule dbd_module /usr/lib/httpd/modules/mod_dbd.so |
|
42 |
-#LoadModule dumpio_module /usr/lib/httpd/modules/mod_dumpio.so |
|
43 |
-#LoadModule echo_module /usr/lib/httpd/modules/mod_echo.so |
|
44 |
-#LoadModule buffer_module /usr/lib/httpd/modules/mod_buffer.so |
|
45 |
-#LoadModule data_module /usr/lib/httpd/modules/mod_data.so |
|
46 |
-#LoadModule ratelimit_module /usr/lib/httpd/modules/mod_ratelimit.so |
|
47 |
-LoadModule reqtimeout_module /usr/lib/httpd/modules/mod_reqtimeout.so |
|
48 |
-#LoadModule ext_filter_module /usr/lib/httpd/modules/mod_ext_filter.so |
|
49 |
-#LoadModule request_module /usr/lib/httpd/modules/mod_request.so |
|
50 |
-#LoadModule include_module /usr/lib/httpd/modules/mod_include.so |
|
51 |
-LoadModule filter_module /usr/lib/httpd/modules/mod_filter.so |
|
52 |
-#LoadModule reflector_module /usr/lib/httpd/modules/mod_reflector.so |
|
53 |
-#LoadModule substitute_module /usr/lib/httpd/modules/mod_substitute.so |
|
54 |
-#LoadModule sed_module /usr/lib/httpd/modules/mod_sed.so |
|
55 |
-#LoadModule charset_lite_module /usr/lib/httpd/modules/mod_charset_lite.so |
|
56 |
-#LoadModule deflate_module /usr/lib/httpd/modules/mod_deflate.so |
|
57 |
-LoadModule mime_module /usr/lib/httpd/modules/mod_mime.so |
|
58 |
-#LoadModule ldap_module /usr/lib/httpd/modules/mod_ldap.so |
|
59 |
-LoadModule log_config_module /usr/lib/httpd/modules/mod_log_config.so |
|
60 |
-#LoadModule log_debug_module /usr/lib/httpd/modules/mod_log_debug.so |
|
61 |
-#LoadModule log_forensic_module /usr/lib/httpd/modules/mod_log_forensic.so |
|
62 |
-#LoadModule logio_module /usr/lib/httpd/modules/mod_logio.so |
|
63 |
-LoadModule env_module /usr/lib/httpd/modules/mod_env.so |
|
64 |
-#LoadModule mime_magic_module /usr/lib/httpd/modules/mod_mime_magic.so |
|
65 |
-#LoadModule expires_module /usr/lib/httpd/modules/mod_expires.so |
|
66 |
-LoadModule headers_module /usr/lib/httpd/modules/mod_headers.so |
|
67 |
-#LoadModule usertrack_module /usr/lib/httpd/modules/mod_usertrack.so |
|
68 |
-#LoadModule unique_id_module /usr/lib/httpd/modules/mod_unique_id.so |
|
69 |
-LoadModule setenvif_module /usr/lib/httpd/modules/mod_setenvif.so |
|
70 |
-LoadModule version_module /usr/lib/httpd/modules/mod_version.so |
|
71 |
-#LoadModule remoteip_module /usr/lib/httpd/modules/mod_remoteip.so |
|
72 |
-#LoadModule proxy_module /usr/lib/httpd/modules/mod_proxy.so |
|
73 |
-#LoadModule proxy_connect_module /usr/lib/httpd/modules/mod_proxy_connect.so |
|
74 |
-#LoadModule proxy_ftp_module /usr/lib/httpd/modules/mod_proxy_ftp.so |
|
75 |
-#LoadModule proxy_http_module /usr/lib/httpd/modules/mod_proxy_http.so |
|
76 |
-#LoadModule proxy_fcgi_module /usr/lib/httpd/modules/mod_proxy_fcgi.so |
|
77 |
-#LoadModule proxy_scgi_module /usr/lib/httpd/modules/mod_proxy_scgi.so |
|
78 |
-#LoadModule proxy_fdpass_module /usr/lib/httpd/modules/mod_proxy_fdpass.so |
|
79 |
-#LoadModule proxy_wstunnel_module /usr/lib/httpd/modules/mod_proxy_wstunnel.so |
|
80 |
-#LoadModule proxy_ajp_module /usr/lib/httpd/modules/mod_proxy_ajp.so |
|
81 |
-#LoadModule proxy_balancer_module /usr/lib/httpd/modules/mod_proxy_balancer.so |
|
82 |
-#LoadModule proxy_express_module /usr/lib/httpd/modules/mod_proxy_express.so |
|
83 |
-#LoadModule session_module /usr/lib/httpd/modules/mod_session.so |
|
84 |
-#LoadModule session_cookie_module /usr/lib/httpd/modules/mod_session_cookie.so |
|
85 |
-#LoadModule session_crypto_module /usr/lib/httpd/modules/mod_session_crypto.so |
|
86 |
-#LoadModule session_dbd_module /usr/lib/httpd/modules/mod_session_dbd.so |
|
87 |
-#LoadModule slotmem_shm_module /usr/lib/httpd/modules/mod_slotmem_shm.so |
|
88 |
-#LoadModule slotmem_plain_module /usr/lib/httpd/modules/mod_slotmem_plain.so |
|
89 |
-#LoadModule ssl_module /usr/lib/httpd/modules/mod_ssl.so |
|
90 |
-#LoadModule dialup_module /usr/lib/httpd/modules/mod_dialup.so |
|
91 |
-#LoadModule lbmethod_byrequests_module /usr/lib/httpd/modules/mod_lbmethod_byrequests.so |
|
92 |
-#LoadModule lbmethod_bytraffic_module /usr/lib/httpd/modules/mod_lbmethod_bytraffic.so |
|
93 |
-#LoadModule lbmethod_bybusyness_module /usr/lib/httpd/modules/mod_lbmethod_bybusyness.so |
|
94 |
-#LoadModule lbmethod_heartbeat_module /usr/lib/httpd/modules/mod_lbmethod_heartbeat.so |
|
95 |
-LoadModule mpm_event_module /usr/lib/httpd/modules/mod_mpm_event.so |
|
96 |
-LoadModule unixd_module /usr/lib/httpd/modules/mod_unixd.so |
|
97 |
-#LoadModule heartbeat_module /usr/lib/httpd/modules/mod_heartbeat.so |
|
98 |
-#LoadModule heartmonitor_module /usr/lib/httpd/modules/mod_heartmonitor.so |
|
99 |
-#LoadModule dav_module /usr/lib/httpd/modules/mod_dav.so |
|
100 |
-LoadModule status_module /usr/lib/httpd/modules/mod_status.so |
|
101 |
-LoadModule autoindex_module /usr/lib/httpd/modules/mod_autoindex.so |
|
102 |
-#LoadModule asis_module /usr/lib/httpd/modules/mod_asis.so |
|
103 |
-#LoadModule info_module /usr/lib/httpd/modules/mod_info.so |
|
104 |
-#LoadModule cgid_module /usr/lib/httpd/modules/mod_cgid.so |
|
105 |
-#LoadModule cgi_module /usr/lib/httpd/modules/mod_cgi.so |
|
106 |
-#LoadModule dav_fs_module /usr/lib/httpd/modules/mod_dav_fs.so |
|
107 |
-#LoadModule dav_lock_module /usr/lib/httpd/modules/mod_dav_lock.so |
|
108 |
-#LoadModule vhost_alias_module /usr/lib/httpd/modules/mod_vhost_alias.so |
|
109 |
-#LoadModule negotiation_module /usr/lib/httpd/modules/mod_negotiation.so |
|
110 |
-LoadModule dir_module /usr/lib/httpd/modules/mod_dir.so |
|
111 |
-#LoadModule actions_module /usr/lib/httpd/modules/mod_actions.so |
|
112 |
-#LoadModule speling_module /usr/lib/httpd/modules/mod_speling.so |
|
113 |
-#LoadModule userdir_module /usr/lib/httpd/modules/mod_userdir.so |
|
114 |
-LoadModule alias_module /usr/lib/httpd/modules/mod_alias.so |
|
115 |
-#LoadModule rewrite_module /usr/lib/httpd/modules/mod_rewrite.so |
|
116 |
- |
|
117 |
-<IfModule mime_module> |
|
118 |
- TypesConfig conf/mime.types |
|
119 |
- AddType application/x-compress .Z |
|
120 |
- AddType application/x-gzip .tgz |
|
121 |
-</IfModule> |
8 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,170 +0,0 @@ |
1 |
-# |
|
2 |
-# Copyright (C) 2015 vmware inc. |
|
3 |
-# |
|
4 |
-# Author: Touseef Liaqat <tliaqat@vmware.com> |
|
5 |
- |
|
6 |
-import os |
|
7 |
-import glob |
|
8 |
-import modules.commons |
|
9 |
-from installer import Installer |
|
10 |
-from actionresult import ActionResult |
|
11 |
- |
|
12 |
-class OstreeInstaller(Installer): |
|
13 |
- |
|
14 |
- def __init__(self, install_config, maxy = 0, maxx = 0, iso_installer = False, rpm_path = "../stage/RPMS", log_path = "../stage/LOGS"): |
|
15 |
- Installer.__init__(self, install_config, maxy, maxx, iso_installer, rpm_path, log_path) |
|
16 |
- self.repo_config = {} |
|
17 |
- self.repo_read_conf() |
|
18 |
- |
|
19 |
- def get_ostree_repo_url(self): |
|
20 |
- self.default_repo = 'default_repo' in self.install_config and self.install_config['default_repo']; |
|
21 |
- if not self.default_repo: |
|
22 |
- self.ostree_repo_url = self.install_config['ostree_repo_url'] |
|
23 |
- self.ostree_ref = self.install_config['ostree_repo_ref'] |
|
24 |
- |
|
25 |
- def repo_read_conf(self): |
|
26 |
- with open("ostree-release-repo.conf") as repo_conf: |
|
27 |
- for line in repo_conf: |
|
28 |
- name, value = line.partition("=")[::2] |
|
29 |
- self.repo_config[name] = value.strip(' \n\t\r') |
|
30 |
- |
|
31 |
- def pull_repo(self, repo_url, repo_ref): |
|
32 |
- if self.default_repo: |
|
33 |
- self.run("ostree remote add --repo={}/ostree/repo --set=gpg-verify=false photon {}".format(self.photon_root, repo_url), "Adding OSTree remote") |
|
34 |
- self.run("ostree pull-local --repo={}/ostree/repo {}".format(self.photon_root, self.local_repo_path), "Pulling OSTree repo") |
|
35 |
- self.run("mv {}/ostree/repo/refs/heads {}/ostree/repo/refs/remotes/photon".format(self.photon_root, self.photon_root)) |
|
36 |
- self.run("mkdir -p {}/ostree/repo/refs/heads".format(self.photon_root, self.photon_root)) |
|
37 |
- else: |
|
38 |
- self.run("ostree remote add --repo={}/ostree/repo --set=gpg-verify=false photon {}".format(self.photon_root, repo_url), "Adding OSTree remote") |
|
39 |
- self.run("ostree pull --repo={}/ostree/repo photon {}".format(self.photon_root, repo_ref), "Pulling OSTree remote repo") |
|
40 |
- |
|
41 |
- def deploy_ostree(self, repo_url, repo_ref): |
|
42 |
- self.run("ostree admin --sysroot={} init-fs {}".format(self.photon_root, self.photon_root), "Initializing OSTree filesystem") |
|
43 |
- self.pull_repo(repo_url, repo_ref) |
|
44 |
- self.run("ostree admin --sysroot={} os-init photon ".format(self.photon_root), "OSTree OS Initializing") |
|
45 |
- self.run("ostree admin --sysroot={} deploy --os=photon photon:{}".format(self.photon_root, repo_ref), "Deploying") |
|
46 |
- |
|
47 |
- def do_systemd_tmpfiles_commands(self, commit_number): |
|
48 |
- prefixes = ["/var/home", |
|
49 |
- "/var/roothome", |
|
50 |
- "/var/lib/rpm", |
|
51 |
- "/var/opt", |
|
52 |
- "/var/srv", |
|
53 |
- "/var/userlocal", |
|
54 |
- "/var/mnt", |
|
55 |
- "/var/spool/mail"] |
|
56 |
- |
|
57 |
- for prefix in prefixes: |
|
58 |
- command = "systemd-tmpfiles --create --boot --root={}/ostree/deploy/photon/deploy/{}.0 --prefix={}".format(self.photon_root, commit_number, prefix) |
|
59 |
- self.run(command) |
|
60 |
- |
|
61 |
- def mount_devices_in_deployment(self, commit_number): |
|
62 |
- for command in ["mount -t bind -o bind,defaults /dev {}/ostree/deploy/photon/deploy/{}.0/dev", |
|
63 |
- "mount -t devpts -o gid=5,mode=620 devpts {}/ostree/deploy/photon/deploy/{}.0/dev/pts", |
|
64 |
- "mount -t tmpfs -o defaults tmpfs {}/ostree/deploy/photon/deploy/{}.0/dev/shm", |
|
65 |
- "mount -t proc -o defaults proc {}/ostree/deploy/photon/deploy/{}.0/proc", |
|
66 |
- "mount -t bind -o bind,defaults /run {}/ostree/deploy/photon/deploy/{}.0/run", |
|
67 |
- "mount -t sysfs -o defaults sysfs {}/ostree/deploy/photon/deploy/{}.0/sys" ]: |
|
68 |
- self.run(command.format(self.photon_root, commit_number)) |
|
69 |
- |
|
70 |
- def get_commit_number(self, ref): |
|
71 |
- fileName = os.path.join(self.photon_root, "ostree/repo/refs/remotes/photon/{}".format(ref)) |
|
72 |
- commit_number = None |
|
73 |
- with open (fileName, "r") as file: |
|
74 |
- commit_number = file.read().replace('\n', '') |
|
75 |
- return commit_number |
|
76 |
- |
|
77 |
- def unsafe_install(self, params): |
|
78 |
- self.org_photon_root = self.photon_root |
|
79 |
- sysroot_ostree = os.path.join(self.photon_root, "ostree") |
|
80 |
- sysroot_boot = os.path.join(self.photon_root, "boot") |
|
81 |
- loader0 = os.path.join(sysroot_boot, "loader.0") |
|
82 |
- loader1 = os.path.join(sysroot_boot, "loader.1") |
|
83 |
- |
|
84 |
- boot0 = os.path.join(sysroot_ostree, "boot.0") |
|
85 |
- boot1 = os.path.join(sysroot_ostree, "boot.1") |
|
86 |
- |
|
87 |
- boot01 = os.path.join(sysroot_ostree, "boot.0.1") |
|
88 |
- boot11 = os.path.join(sysroot_ostree, "boot.1.1") |
|
89 |
- |
|
90 |
- self.get_ostree_repo_url() |
|
91 |
- |
|
92 |
- self.window.show_window() |
|
93 |
- self.progress_bar.initialize("Initializing installation...") |
|
94 |
- self.progress_bar.show() |
|
95 |
- |
|
96 |
- self.execute_modules(modules.commons.PRE_INSTALL) |
|
97 |
- |
|
98 |
- disk = self.install_config['disk']['disk'] |
|
99 |
- self.run("sgdisk -d 1 -d 2 -n 1::+2M -n 2::+300M -n 3: -p {}".format(disk), "Updating partition table for OSTree") |
|
100 |
- self.run("sgdisk -t1:ef02 {}".format(disk)) |
|
101 |
- self.run("mkfs -t ext4 {}2".format(disk)) |
|
102 |
- self.run("mkfs -t ext4 {}3".format(disk)) |
|
103 |
- self.run("mount {}3 {}".format(disk, self.photon_root)) |
|
104 |
- self.run("mkdir -p {} ".format(sysroot_boot)) |
|
105 |
- self.run("mount {}2 {}".format(disk, sysroot_boot)) |
|
106 |
- |
|
107 |
- #Setup the disk |
|
108 |
- self.run("dd if=/dev/zero of={}/swapfile bs=1M count=64".format(self.photon_root)) |
|
109 |
- self.run("chmod 600 {}/swapfile".format(self.photon_root)) |
|
110 |
- self.run("mkswap -v1 {}/swapfile".format(self.photon_root)) |
|
111 |
- self.run("swapon {}/swapfile".format(self.photon_root)) |
|
112 |
- |
|
113 |
- if self.default_repo: |
|
114 |
- self.run("rm -rf /installer/boot") |
|
115 |
- self.run("mkdir -p {}/repo".format(self.photon_root)) |
|
116 |
- self.progress_bar.show_loading("Unpacking local OSTree repo") |
|
117 |
- self.run("tar --warning=none -xf /mnt/cdrom/ostree-repo.tar.gz -C {}/repo".format(self.photon_root)) |
|
118 |
- self.local_repo_path = "{}/repo".format(self.photon_root) |
|
119 |
- self.ostree_repo_url = self.repo_config['OSTREEREPOURL'] |
|
120 |
- self.ostree_ref = self.repo_config['OSTREEREFS'] |
|
121 |
- self.progress_bar.update_loading_message("Unpacking done") |
|
122 |
- |
|
123 |
- |
|
124 |
- self.deploy_ostree(self.ostree_repo_url, self.ostree_ref) |
|
125 |
- |
|
126 |
- self.run("swapoff -a") |
|
127 |
- self.run("rm {}/swapfile".format(self.photon_root)) |
|
128 |
- |
|
129 |
- commit_number = self.get_commit_number(self.ostree_ref) |
|
130 |
- self.do_systemd_tmpfiles_commands(commit_number) |
|
131 |
- |
|
132 |
- self.mount_devices_in_deployment(commit_number) |
|
133 |
- deployment = os.path.join(self.photon_root, "ostree/deploy/photon/deploy/" + commit_number + ".0/") |
|
134 |
- |
|
135 |
- deployment_boot = os.path.join(deployment, "boot") |
|
136 |
- deployment_sysroot = os.path.join(deployment, "sysroot") |
|
137 |
- |
|
138 |
- self.run("mv {} {}".format(loader1, loader0)) |
|
139 |
- self.run("mv {} {}".format(boot1, boot0)) |
|
140 |
- self.run("mv {} {}".format(boot11, boot01)) |
|
141 |
- self.run("mount --bind {} {}".format(sysroot_boot, deployment_boot)) |
|
142 |
- self.run("mount --bind {} {}".format(self.photon_root, deployment_sysroot)) |
|
143 |
- self.run("chroot {} bash -c \"grub2-install /dev/sda\"".format(deployment)) |
|
144 |
- self.run("chroot {} bash -c \"grub2-mkconfig -o /boot/grub2/grub.cfg\"".format(deployment)) |
|
145 |
- self.run("mv {} {}".format(loader0, loader1)) |
|
146 |
- self.run("mv {} {}".format(boot0, boot1)) |
|
147 |
- self.run("mv {} {}".format(boot01, boot11)) |
|
148 |
- self.run("chroot {} bash -c \"ostree admin instutil set-kargs root=/dev/sda3 \"".format(deployment)) |
|
149 |
- sysroot_grub2_grub_cfg = os.path.join(self.photon_root, "boot/grub2/grub.cfg") |
|
150 |
- self.run("ln -sf ../loader/grub.cfg {}".format(sysroot_grub2_grub_cfg)) |
|
151 |
- self.run("mv {} {}".format(loader1, loader0)) |
|
152 |
- self.run("mv {} {}".format(boot1, boot0)) |
|
153 |
- self.run("mv {} {}".format(boot11, boot01)) |
|
154 |
- |
|
155 |
- |
|
156 |
- deployment_fstab = os.path.join(deployment, "etc/fstab") |
|
157 |
- self.run("echo \"/dev/sda3 / ext4 defaults,barrier,noatime,noacl,data=ordered 1 1 \" >> {} ".format(deployment_fstab), "Adding / mount point in fstab") |
|
158 |
- self.run("echo \"/dev/sda2 /boot ext4 defaults 1 2 \" >> {} ".format(deployment_fstab), "Adding /boot mount point in fstab") |
|
159 |
- self.run("mount --bind {} {}".format(deployment, self.photon_root)) |
|
160 |
- self.progress_bar.update_loading_message("Starting post install modules") |
|
161 |
- self.execute_modules(modules.commons.POST_INSTALL) |
|
162 |
- self.progress_bar.update_loading_message("Unmounting disks") |
|
163 |
- self.run("{} {} {}".format(self.unmount_disk_command, '-w', self.photon_root)) |
|
164 |
- self.progress_bar.update_loading_message("Ready to restart") |
|
165 |
- self.progress_bar.hide() |
|
166 |
- self.window.addstr(0, 0, 'Congratulations, Photon RPM-OSTree Host has been installed in {0} secs.\n\nPress any key to continue to boot...'.format(self.progress_bar.time_elapsed)) |
|
167 |
- if 'ui_install' in self.install_config: |
|
168 |
- self.window.content_window().getch() |
|
169 |
- return ActionResult(True, None) |
|
170 |
- |
171 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,55 +0,0 @@ |
1 |
-# |
|
2 |
-# Copyright (C) 2015 vmware inc. |
|
3 |
-# |
|
4 |
-# Author: Touseef Liaqat <tliaqat@vmware.com> |
|
5 |
- |
|
6 |
-import subprocess |
|
7 |
-import curses |
|
8 |
-import os |
|
9 |
-import crypt |
|
10 |
-import re |
|
11 |
-import random |
|
12 |
-import string |
|
13 |
-import shutil |
|
14 |
-import fnmatch |
|
15 |
-import signal |
|
16 |
-import sys |
|
17 |
-import glob |
|
18 |
-import urllib |
|
19 |
-import modules.commons |
|
20 |
-from jsonwrapper import JsonWrapper |
|
21 |
-from progressbar import ProgressBar |
|
22 |
-from windowstringreader import WindowStringReader |
|
23 |
-from window import Window |
|
24 |
-from actionresult import ActionResult |
|
25 |
-from installer import Installer |
|
26 |
- |
|
27 |
-class OstreeServerInstaller(Installer): |
|
28 |
- |
|
29 |
- def __init__(self, install_config, maxy = 0, maxx = 0, iso_installer = False, rpm_path = "../stage/RPMS", log_path = "../stage/LOGS"): |
|
30 |
- Installer.__init__(self, install_config, maxy, maxx, iso_installer, rpm_path, log_path) |
|
31 |
- |
|
32 |
- def finalize_system(self): |
|
33 |
- Installer.finalize_system(self) |
|
34 |
- |
|
35 |
- self.run("mkdir -p {}/srv/rpm-ostree/repo".format(self.photon_root)) |
|
36 |
- self.run("cp ./photon-base.json {}/srv/rpm-ostree/".format(self.photon_root)) |
|
37 |
- self.run("cp ./photon-minimal.json {}/srv/rpm-ostree/".format(self.photon_root)) |
|
38 |
- self.run("cp ./photon-full.json {}/srv/rpm-ostree/".format(self.photon_root)) |
|
39 |
- self.run("ln -s /etc/yum.repos.d/photon.repo {}/srv/rpm-ostree/photon-ostree.repo".format(self.photon_root)) |
|
40 |
- self.run("ln -s /etc/yum.repos.d/photon-iso.repo {}/srv/rpm-ostree/photon-iso-ostree.repo".format(self.photon_root)) |
|
41 |
- self.run("ln -s /etc/yum.repos.d/photon-updates.repo {}/srv/rpm-ostree/photon-updates-ostree.repo".format(self.photon_root)) |
|
42 |
- self.run("ln -s /etc/yum.repos.d/photon-extras.repo {}/srv/rpm-ostree/photon-extras-ostree.repo".format(self.photon_root)) |
|
43 |
- self.run("cp ./ostree-httpd.conf {}/srv/rpm-ostree/".format(self.photon_root)) |
|
44 |
- # Use a custom httpd service file for ostree server |
|
45 |
- self.run("mkdir {}/etc/systemd/system/httpd.service.d".format(self.photon_root)) |
|
46 |
- self.run("cp ./10-httpd-service.conf {}/etc/systemd/system/httpd.service.d/".format(self.photon_root)) |
|
47 |
- self.run("cp ./get-ip-address.sh {}/usr/bin/".format(self.photon_root)) |
|
48 |
- self.run("cp ./ostree-server-greeting.txt {}/etc/issue".format(self.photon_root)) |
|
49 |
- self.run("ln -s /usr/lib/systemd/system/httpd.service {}/usr/lib/systemd/system/multi-user.target.wants/httpd.service".format(self.photon_root)) |
|
50 |
- self.run("tar -xf /mnt/cdrom/ostree-repo.tar.gz -C {}/srv/rpm-ostree/repo".format(self.photon_root)) |
|
51 |
- self.run("sed -i \"\\$i iptables -A INPUT -m state --state NEW,ESTABLISHED -p tcp --dport 80 -j ACCEPT\" {}/etc/systemd/scripts/iptables".format(self.photon_root)) |
|
52 |
- self.run("sed -i \"\\$i iptables -A INPUT -m state --state NEW,ESTABLISHED -p tcp --dport 443 -j ACCEPT\" {}/etc/systemd/scripts/iptables".format(self.photon_root)) |
|
53 |
- self.run("sed -i \"s/umask[ \t]\+[0-9]\+/umask 022/g\" {}/etc/profile".format(self.photon_root)) |
|
54 |
- |
|
55 |
- |
56 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,41 +0,0 @@ |
1 |
-{ |
|
2 |
- "comment": "Photon Base OSTree", |
|
3 |
- |
|
4 |
- "osname": "photon", |
|
5 |
- |
|
6 |
- "ref": "photon/2.0/x86_64/base", |
|
7 |
- |
|
8 |
- "automatic_version_prefix": "2.0_base", |
|
9 |
- |
|
10 |
- "repos": ["photon", "photon-updates"], |
|
11 |
- |
|
12 |
- "selinux": false, |
|
13 |
- |
|
14 |
- "initramfs-args": ["--no-hostonly"], |
|
15 |
- |
|
16 |
- "bootstrap_packages": ["filesystem"], |
|
17 |
- |
|
18 |
- "documentation": false, |
|
19 |
- |
|
20 |
- "packages": [ |
|
21 |
- "bash", "bc", "bridge-utils", "bzip2", |
|
22 |
- "ca-certificates", "coreutils", "cpio", "cracklib", "cracklib-dicts", "curl", |
|
23 |
- "dbus", "docker", "dracut", "dracut-tools", |
|
24 |
- "expat", |
|
25 |
- "file", "findutils", |
|
26 |
- "glibc", "gmp", "grep", "grub2", "grub2-pc", "gzip", |
|
27 |
- "iana-etc", "iproute2", "iptables", |
|
28 |
- "kmod", |
|
29 |
- "libcap", "libgcc", "libstdc++", "libtool", "linux", |
|
30 |
- "ncurses", "net-tools", "nss-altfiles", |
|
31 |
- "openssh", "openssl", |
|
32 |
- "photon-release", "pkg-config", "procps-ng", |
|
33 |
- "readline", "rpm-ostree", |
|
34 |
- "sed", "shadow", "systemd", |
|
35 |
- "util-linux", |
|
36 |
- "vim", |
|
37 |
- "which", |
|
38 |
- "xz", |
|
39 |
- "zlib" |
|
40 |
- ] |
|
41 |
-} |
42 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,360 +0,0 @@ |
1 |
-{ |
|
2 |
- "comment": "Photon Full OSTree", |
|
3 |
- |
|
4 |
- "osname": "photon", |
|
5 |
- |
|
6 |
- "ref": "photon/2.0/x86_64/full", |
|
7 |
- |
|
8 |
- "automatic_version_prefix": "2.0_full", |
|
9 |
- |
|
10 |
- "repos": ["photon", "photon-updates"], |
|
11 |
- |
|
12 |
- "selinux": false, |
|
13 |
- |
|
14 |
- "initramfs-args": ["--no-hostonly"], |
|
15 |
- |
|
16 |
- "bootstrap_packages": ["filesystem"], |
|
17 |
- |
|
18 |
- "documentation": true, |
|
19 |
- |
|
20 |
- "packages": [ |
|
21 |
- "Linux-PAM", |
|
22 |
- "Linux-PAM-lang", |
|
23 |
- "XML-Parser", |
|
24 |
- "acl", |
|
25 |
- "apache-maven", |
|
26 |
- "apr", |
|
27 |
- "apr-util", |
|
28 |
- "apr-util-ldap", |
|
29 |
- "apr-util-pgsql", |
|
30 |
- "apr-util-sqlite", |
|
31 |
- "asciidoc", |
|
32 |
- "atftp", |
|
33 |
- "atftp-client", |
|
34 |
- "attr", |
|
35 |
- "audit", |
|
36 |
- "autoconf", |
|
37 |
- "autogen-libopts", |
|
38 |
- "automake", |
|
39 |
- "bash", |
|
40 |
- "bash-lang", |
|
41 |
- "bc", |
|
42 |
- "binutils", |
|
43 |
- "bison", |
|
44 |
- "boost", |
|
45 |
- "bridge-utils", |
|
46 |
- "btrfs-progs", |
|
47 |
- "bubblewrap", |
|
48 |
- "build-essential", |
|
49 |
- "bzip2", |
|
50 |
- "bzip2-libs", |
|
51 |
- "c-ares", |
|
52 |
- "ca-certificates", |
|
53 |
- "ca-certificates-pki", |
|
54 |
- "cdrkit", |
|
55 |
- "check", |
|
56 |
- "chkconfig", |
|
57 |
- "cifs-utils", |
|
58 |
- "cloud-init", |
|
59 |
- "cmake", |
|
60 |
- "cni", |
|
61 |
- "coreutils", |
|
62 |
- "coreutils-lang", |
|
63 |
- "cpio", |
|
64 |
- "cracklib", |
|
65 |
- "cracklib-dicts", |
|
66 |
- "ctags", |
|
67 |
- "curl", |
|
68 |
- "curl-libs", |
|
69 |
- "cve-check-tool", |
|
70 |
- "cyrus-sasl", |
|
71 |
- "cython3", |
|
72 |
- "dbus", |
|
73 |
- "ddclient", |
|
74 |
- "deltarpm", |
|
75 |
- "device-mapper", |
|
76 |
- "device-mapper-event", |
|
77 |
- "device-mapper-event-libs", |
|
78 |
- "device-mapper-libs", |
|
79 |
- "diffutils", |
|
80 |
- "dkms", |
|
81 |
- "dnsmasq", |
|
82 |
- "docbook-xml", |
|
83 |
- "docbook-xsl", |
|
84 |
- "docker", |
|
85 |
- "dracut", |
|
86 |
- "dracut-tools", |
|
87 |
- "e2fsprogs", |
|
88 |
- "e2fsprogs-libs", |
|
89 |
- "ebtables", |
|
90 |
- "elfutils", |
|
91 |
- "elfutils-libelf", |
|
92 |
- "etcd", |
|
93 |
- "ethtool", |
|
94 |
- "expat", |
|
95 |
- "expat-libs", |
|
96 |
- "fakeroot-ng", |
|
97 |
- "file", |
|
98 |
- "filesystem", |
|
99 |
- "findutils", |
|
100 |
- "flannel", |
|
101 |
- "flex", |
|
102 |
- "fuse", |
|
103 |
- "gawk", |
|
104 |
- "gcc", |
|
105 |
- "gdb", |
|
106 |
- "gdbm", |
|
107 |
- "gettext", |
|
108 |
- "git", |
|
109 |
- "git-lang", |
|
110 |
- "glib", |
|
111 |
- "glib-networking", |
|
112 |
- "glibc", |
|
113 |
- "glibc-devel", |
|
114 |
- "glibc-lang", |
|
115 |
- "glibmm", |
|
116 |
- "gmp", |
|
117 |
- "gnupg", |
|
118 |
- "gnutls", |
|
119 |
- "go", |
|
120 |
- "gobject-introspection", |
|
121 |
- "gperf", |
|
122 |
- "gpgme", |
|
123 |
- "gptfdisk", |
|
124 |
- "grep", |
|
125 |
- "groff", |
|
126 |
- "grub2", |
|
127 |
- "grub2-efi", |
|
128 |
- "grub2-lang", |
|
129 |
- "grub2-pc", |
|
130 |
- "gzip", |
|
131 |
- "haproxy", |
|
132 |
- "haveged", |
|
133 |
- "hawkey", |
|
134 |
- "httpd", |
|
135 |
- "iana-etc", |
|
136 |
- "initramfs", |
|
137 |
- "intltool", |
|
138 |
- "iproute2", |
|
139 |
- "iptables", |
|
140 |
- "iputils", |
|
141 |
- "jq", |
|
142 |
- "json-c", |
|
143 |
- "json-glib", |
|
144 |
- "kbd", |
|
145 |
- "kmod", |
|
146 |
- "krb5", |
|
147 |
- "kubernetes", |
|
148 |
- "less", |
|
149 |
- "libacl", |
|
150 |
- "libaio", |
|
151 |
- "libarchive", |
|
152 |
- "libassuan", |
|
153 |
- "libcap", |
|
154 |
- "libcap-ng", |
|
155 |
- "libdb", |
|
156 |
- "libdnet", |
|
157 |
- "libevent", |
|
158 |
- "libffi", |
|
159 |
- "libgcc", |
|
160 |
- "libgcc-atomic", |
|
161 |
- "libgcc-devel", |
|
162 |
- "libgcrypt", |
|
163 |
- "libgomp", |
|
164 |
- "libgomp-devel", |
|
165 |
- "libgpg-error", |
|
166 |
- "libgsystem", |
|
167 |
- "libhif", |
|
168 |
- "libksba", |
|
169 |
- "libltdl", |
|
170 |
- "libmspack", |
|
171 |
- "libpcap", |
|
172 |
- "libpipeline", |
|
173 |
- "librepo", |
|
174 |
- "libseccomp", |
|
175 |
- "libselinux", |
|
176 |
- "libselinux-python3", |
|
177 |
- "libselinux-utils", |
|
178 |
- "libsepol", |
|
179 |
- "libsigc++", |
|
180 |
- "libsolv", |
|
181 |
- "libsoup", |
|
182 |
- "libssh2", |
|
183 |
- "libstdc++", |
|
184 |
- "libstdc++-devel", |
|
185 |
- "libtasn1", |
|
186 |
- "libtirpc", |
|
187 |
- "libtool", |
|
188 |
- "libxml2", |
|
189 |
- "libxml2-devel", |
|
190 |
- "libxslt", |
|
191 |
- "libyaml", |
|
192 |
- "linux", |
|
193 |
- "linux-api-headers", |
|
194 |
- "lsof", |
|
195 |
- "lua", |
|
196 |
- "lvm2", |
|
197 |
- "lvm2-libs", |
|
198 |
- "lzo", |
|
199 |
- "lzo-minilzo", |
|
200 |
- "m4", |
|
201 |
- "make", |
|
202 |
- "man-db", |
|
203 |
- "man-pages", |
|
204 |
- "mesos", |
|
205 |
- "mkinitcpio", |
|
206 |
- "motd", |
|
207 |
- "mpc", |
|
208 |
- "mpfr", |
|
209 |
- "nano", |
|
210 |
- "ncurses", |
|
211 |
- "ncurses-compat", |
|
212 |
- "ncurses-libs", |
|
213 |
- "ncurses-terminfo", |
|
214 |
- "net-tools", |
|
215 |
- "netmgmt", |
|
216 |
- "nettle", |
|
217 |
- "newt", |
|
218 |
- "nfs-utils", |
|
219 |
- "npth", |
|
220 |
- "nspr", |
|
221 |
- "nss", |
|
222 |
- "nss-altfiles", |
|
223 |
- "nss-libs", |
|
224 |
- "ntp", |
|
225 |
- "open-vm-tools", |
|
226 |
- "openjdk8", |
|
227 |
- "openjdk8-doc", |
|
228 |
- "openjdk8-sample", |
|
229 |
- "openjdk8-src", |
|
230 |
- "openjre8", |
|
231 |
- "openldap", |
|
232 |
- "openssh", |
|
233 |
- "openssh-clients", |
|
234 |
- "openssh-server", |
|
235 |
- "openssl", |
|
236 |
- "openssl-c_rehash", |
|
237 |
- "openssl-perl", |
|
238 |
- "openvswitch", |
|
239 |
- "openvswitch-doc", |
|
240 |
- "ostree", |
|
241 |
- "parted", |
|
242 |
- "patch", |
|
243 |
- "pcre", |
|
244 |
- "pcre-libs", |
|
245 |
- "perl", |
|
246 |
- "perl-CGI", |
|
247 |
- "perl-Canary-Stability", |
|
248 |
- "perl-Config-IniFiles", |
|
249 |
- "perl-DBD-SQLite", |
|
250 |
- "perl-DBI", |
|
251 |
- "perl-DBIx-Simple", |
|
252 |
- "perl-Exporter-Tiny", |
|
253 |
- "perl-File-HomeDir", |
|
254 |
- "perl-File-Which", |
|
255 |
- "perl-IO-Socket-SSL", |
|
256 |
- "perl-JSON-Any", |
|
257 |
- "perl-JSON-XS", |
|
258 |
- "perl-List-MoreUtils", |
|
259 |
- "perl-Module-Build", |
|
260 |
- "perl-Module-Install", |
|
261 |
- "perl-Module-ScanDeps", |
|
262 |
- "perl-Net-SSLeay", |
|
263 |
- "perl-Object-Accessor", |
|
264 |
- "perl-Types-Serialiser", |
|
265 |
- "perl-WWW-Curl", |
|
266 |
- "perl-YAML", |
|
267 |
- "perl-YAML-Tiny", |
|
268 |
- "perl-common-sense", |
|
269 |
- "perl-libintl", |
|
270 |
- "pgbouncer", |
|
271 |
- "photon-release", |
|
272 |
- "photon-repos", |
|
273 |
- "pinentry", |
|
274 |
- "pkg-config", |
|
275 |
- "popt", |
|
276 |
- "postgresql", |
|
277 |
- "postgresql-libs", |
|
278 |
- "procps-ng", |
|
279 |
- "psmisc", |
|
280 |
- "pycurl3", |
|
281 |
- "python-six", |
|
282 |
- "python-xml", |
|
283 |
- "python2", |
|
284 |
- "python2-libs", |
|
285 |
- "python3", |
|
286 |
- "python3-PyYAML", |
|
287 |
- "python3-asn1crypto", |
|
288 |
- "python3-cffi", |
|
289 |
- "python3-configobj", |
|
290 |
- "python3-cryptography", |
|
291 |
- "python3-gobject-introspection", |
|
292 |
- "python3-hawkey", |
|
293 |
- "python3-idna", |
|
294 |
- "python3-iniparse", |
|
295 |
- "python3-jinja2", |
|
296 |
- "python3-jsonpatch", |
|
297 |
- "python3-jsonpointer", |
|
298 |
- "python3-libs", |
|
299 |
- "python3-lvm2-libs", |
|
300 |
- "python3-lxml", |
|
301 |
- "python3-markupsafe", |
|
302 |
- "python3-oauthlib", |
|
303 |
- "python3-packaging", |
|
304 |
- "python3-prettytable", |
|
305 |
- "python3-pyasn1", |
|
306 |
- "python3-pycparser", |
|
307 |
- "python3-pyparsing", |
|
308 |
- "python3-requests", |
|
309 |
- "python3-setuptools", |
|
310 |
- "python3-six", |
|
311 |
- "python3-tools", |
|
312 |
- "python3-xml", |
|
313 |
- "python3-yum-metadata-parser", |
|
314 |
- "readline", |
|
315 |
- "rpcbind", |
|
316 |
- "rpm", |
|
317 |
- "rpm-build", |
|
318 |
- "rpm-devel", |
|
319 |
- "rpm-lang", |
|
320 |
- "rpm-libs", |
|
321 |
- "rpm-ostree", |
|
322 |
- "ruby", |
|
323 |
- "sed", |
|
324 |
- "sed-lang", |
|
325 |
- "shadow", |
|
326 |
- "slang", |
|
327 |
- "socat", |
|
328 |
- "sqlite-libs", |
|
329 |
- "sshpass", |
|
330 |
- "strace", |
|
331 |
- "subversion", |
|
332 |
- "sudo", |
|
333 |
- "swig", |
|
334 |
- "syslog-ng", |
|
335 |
- "systemd", |
|
336 |
- "tar", |
|
337 |
- "tcp_wrappers", |
|
338 |
- "tcpdump", |
|
339 |
- "tcsh", |
|
340 |
- "tdnf", |
|
341 |
- "texinfo", |
|
342 |
- "thin-provisioning-tools", |
|
343 |
- "tzdata", |
|
344 |
- "unzip", |
|
345 |
- "util-linux", |
|
346 |
- "util-linux-lang", |
|
347 |
- "util-linux-libs", |
|
348 |
- "vim", |
|
349 |
- "vim-extra", |
|
350 |
- "wget", |
|
351 |
- "which", |
|
352 |
- "xerces-c", |
|
353 |
- "xinetd", |
|
354 |
- "xml-security-c", |
|
355 |
- "xz", |
|
356 |
- "xz-libs", |
|
357 |
- "zlib", |
|
358 |
- "zookeeper" |
|
359 |
- ] |
|
360 |
-} |
361 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,46 +0,0 @@ |
1 |
-{ |
|
2 |
- "comment": "Photon Minimal OSTree", |
|
3 |
- |
|
4 |
- "osname": "photon", |
|
5 |
- |
|
6 |
- "ref": "photon/2.0/x86_64/minimal", |
|
7 |
- |
|
8 |
- "automatic_version_prefix": "2.0_minimal", |
|
9 |
- |
|
10 |
- "repos": ["photon", "photon-updates"], |
|
11 |
- |
|
12 |
- "selinux": false, |
|
13 |
- |
|
14 |
- "initramfs-args": ["--no-hostonly"], |
|
15 |
- |
|
16 |
- "bootstrap_packages": ["filesystem"], |
|
17 |
- |
|
18 |
- "documentation": false, |
|
19 |
- |
|
20 |
- "packages": [ |
|
21 |
- "bash", "bc", "bridge-utils", "bzip2", |
|
22 |
- "ca-certificates", "cloud-init", "coreutils", "cpio", "cracklib", "cracklib-dicts", "curl", |
|
23 |
- "dbus", "docker", |
|
24 |
- "e2fsprogs", "e2fsprogs-libs", "expat", |
|
25 |
- "file", "findutils", |
|
26 |
- "gdbm", "glibc", "gmp", "grub2", "grub2-pc", "gzip", |
|
27 |
- "hawkey", |
|
28 |
- "iana-etc", "initramfs", "iproute2", "iptables", |
|
29 |
- "kmod", |
|
30 |
- "libcap", "libgcc", "libdnet", "libmspack", "libstdc++", "libtool", "libyaml", "linux", |
|
31 |
- "motd", |
|
32 |
- "ncurses", "net-tools", "nss-altfiles", |
|
33 |
- "openssh", "openssl", "open-vm-tools", |
|
34 |
- "photon-release", "photon-repos", "pkg-config", "procps-ng", |
|
35 |
- "python3", "python3-configobj", "python3-jinja2", "python3-jsonpatch", "python3-jsonpointer", "python3-libs", "python3-markupsafe", |
|
36 |
- "python3-oauthlib", "python3-prettytable", "python3-PyYAML", "python3-requests", "python3-setuptools", "python3-six", "python3-xml", |
|
37 |
- "readline", "rpm", "rpm-ostree", |
|
38 |
- "shadow","systemd", |
|
39 |
- "tdnf", "tzdata", |
|
40 |
- "util-linux", |
|
41 |
- "vim", |
|
42 |
- "which", |
|
43 |
- "xerces-c", "xml-security-c", "xz", |
|
44 |
- "zlib" |
|
45 |
- ] |
|
46 |
-} |
... | ... |
@@ -571,9 +571,6 @@ openssl-devel.package-name=openssl-devel |
571 | 571 |
openssl-devel.spec=openssl |
572 | 572 |
openssl-devel.deploy=optional |
573 | 573 |
|
574 |
-ostree.package-name=ostree |
|
575 |
-ostree.deploy=optional |
|
576 |
- |
|
577 | 574 |
parted.package-name=parted |
578 | 575 |
parted.deploy=iso,optional |
579 | 576 |
|
... | ... |
@@ -670,12 +667,6 @@ rpm-devel.package-name=rpm-devel |
670 | 670 |
rpm-devel.spec=rpm |
671 | 671 |
rpm-devel.deploy=optional |
672 | 672 |
|
673 |
-rpm-ostree.package-name=rpm-ostree |
|
674 |
-rpm-ostree.deploy=optional |
|
675 |
- |
|
676 |
-rpm-ostree-toolbox.package-name=rpm-ostree-toolbox |
|
677 |
-rpm-ostree-toolbox.deploy=optional |
|
678 |
- |
|
679 | 673 |
ruby.package-name=ruby |
680 | 674 |
ruby.deploy=optional |
681 | 675 |
|
682 | 676 |
deleted file mode 100755 |
... | ... |
@@ -1,28 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
- |
|
3 |
-set -x |
|
4 |
- |
|
5 |
-if [ "$#" -lt 0 ]; then |
|
6 |
- echo "Script to create new Photon OSTree repo inside a docker container." |
|
7 |
- echo "Usage: $0 " |
|
8 |
- exit -1 |
|
9 |
-fi |
|
10 |
- |
|
11 |
-PROGRAM=$0 |
|
12 |
-SRCROOT=$1 |
|
13 |
- |
|
14 |
-createrepo stage/RPMS |
|
15 |
- |
|
16 |
-cp ${SRCROOT}/installer/photon-ostree.repo ${SRCROOT}/installer/photon-ostree.repo.bak |
|
17 |
-echo "baseurl=file:///RPMS" >> ${SRCROOT}/installer/photon-ostree.repo |
|
18 |
- |
|
19 |
-rm -rf stage/ostree-repo |
|
20 |
-mkdir -p stage/ostree-repo |
|
21 |
- |
|
22 |
-sudo docker run -it --privileged -v ${SRCROOT}:/photon -v $(pwd)/stage/RPMS:/RPMS -v $(pwd)/stage/ostree-repo:/srv/rpm-ostree -w="/photon/installer" vmware/photon:rpm-ostree ./mk-ostree-server.sh / |
|
23 |
- |
|
24 |
-(cd stage/ostree-repo/repo/; tar -zcf ../../ostree-repo.tar.gz .; ) |
|
25 |
- |
|
26 |
-# Restore file |
|
27 |
-mv -f ${SRCROOT}/installer/photon-ostree.repo.bak ${SRCROOT}/installer/photon-ostree.repo |
|
28 |
-sudo rm -rf ${SRCROOT}/stage/ostree-repo |
... | ... |
@@ -233,7 +233,6 @@ |
233 | 233 |
<package id="openssl"/> |
234 | 234 |
<package id="openssl-devel" |
235 | 235 |
spec="openssl"/> |
236 |
- <package id="ostree"/> |
|
237 | 236 |
<package id="parted"/> |
238 | 237 |
<package id="patch"/> |
239 | 238 |
<package id="pcre"/> |
... | ... |
@@ -273,8 +272,6 @@ |
273 | 273 |
<package id="rpm"/> |
274 | 274 |
<package id="rpm-devel" |
275 | 275 |
spec="rpm"/> |
276 |
- <package id="rpm-ostree"/> |
|
277 |
- <package id="rpm-ostree-toolbox"/> |
|
278 | 276 |
<package id="ruby"/> |
279 | 277 |
<package id="sed"/> |
280 | 278 |
<package id="sed-lang" |
... | ... |
@@ -657,7 +654,6 @@ |
657 | 657 |
<pkgref id="ntp"/> |
658 | 658 |
<pkgref id="openldap"/> |
659 | 659 |
<pkgref id="openssl-devel"/> |
660 |
- <pkgref id="ostree"/> |
|
661 | 660 |
<pkgref id="parted"/> |
662 | 661 |
<pkgref id="patch"/> |
663 | 662 |
<pkgref id="pcre-devel"/> |
... | ... |
@@ -672,8 +668,6 @@ |
672 | 672 |
<pkgref id="python2-tools"/> |
673 | 673 |
<pkgref id="readline-devel"/> |
674 | 674 |
<pkgref id="rpm-devel"/> |
675 |
- <pkgref id="rpm-ostree"/> |
|
676 |
- <pkgref id="rpm-ostree-toolbox"/> |
|
677 | 675 |
<pkgref id="ruby"/> |
678 | 676 |
<pkgref id="sed-lang"/> |
679 | 677 |
<pkgref id="sudo"/> |
680 | 678 |
deleted file mode 100755 |
... | ... |
@@ -1,27 +0,0 @@ |
1 |
-#!/bin/sh |
|
2 |
-# Script to upload files to bintray. All files in source-path are uploaded to location |
|
3 |
-# configured in following parameters. |
|
4 |
- |
|
5 |
-ACCOUNT=vmware |
|
6 |
-REPO=photon |
|
7 |
-PACKAGE=rpm-ostree |
|
8 |
-VERSION=dev |
|
9 |
- |
|
10 |
-if [ $# -lt 3 ] |
|
11 |
-then |
|
12 |
- echo "Usage : " $0 " <Source Path> <Username> <APIKEY>" |
|
13 |
- exit 1 |
|
14 |
-fi |
|
15 |
- |
|
16 |
-SRC_DIR=$1 |
|
17 |
-USER=$2 |
|
18 |
-APIKEY=$3 |
|
19 |
- |
|
20 |
-(cd $SRC_DIR |
|
21 |
- |
|
22 |
-for FILE in `find . -type f`; do |
|
23 |
- |
|
24 |
- echo "Uploading " $FILE |
|
25 |
- curl -vvf -T $FILE -u$USER:$APIKEY -H "X-Bintray-Package:$PACKAGE" -H "X-Bintray-Version:$VERSION" https://api.bintray.com/content/$ACCOUNT/$REPO/$PACKAGE/$VERSION/$FILE |
|
26 |
- |
|
27 |
-done) |