To fix "service --status-all" added network
configuration file.
Change-Id: Ib20ce5538144b662e939c338ac23714224d834a2
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6648
Reviewed-by: Dweep Advani <dadvani@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| ... | ... |
@@ -3,7 +3,7 @@ Name: initscripts |
| 3 | 3 |
Version: 9.70 |
| 4 | 4 |
License: GPLv2 |
| 5 | 5 |
Group: System Environment/Base |
| 6 |
-Release: 2%{?dist}
|
|
| 6 |
+Release: 3%{?dist}
|
|
| 7 | 7 |
URL: https://github.com/fedora-sysv/initscripts |
| 8 | 8 |
Source0: https://github.com/fedora-sysv/initscripts/archive/%{name}-%{version}.tar.gz
|
| 9 | 9 |
%define sha1 initscripts=6e2ba0946fa2f175f576614d9374ad00266aec66 |
| ... | ... |
@@ -74,12 +74,29 @@ chmod 755 %{buildroot}%{_sysconfdir}/rc.d/rc.local
|
| 74 | 74 |
ln -sfv rc.d/init.d %{buildroot}/etc/init.d
|
| 75 | 75 |
rm -rf %{buildroot}%{_prefix}/lib/systemd
|
| 76 | 76 |
|
| 77 |
+cat >> %{buildroot}%{_sysconfdir}/sysconfig/network <<- "EOF"
|
|
| 78 |
+### |
|
| 79 |
+# This file is used to specify information about the desired network configuration. |
|
| 80 |
+# By default, it contains the following options: |
|
| 81 |
+# |
|
| 82 |
+ |
|
| 83 |
+# A boolean yes or no to Configure networking or not to configure networking. |
|
| 84 |
+# NETWORKING=boolean |
|
| 85 |
+ |
|
| 86 |
+# Hostname of your machine |
|
| 87 |
+# HOSTNAME=value |
|
| 88 |
+ |
|
| 89 |
+# where gwip is the IP address of the remote network gateway -if available. |
|
| 90 |
+# GATEWAY=gwip |
|
| 91 |
+EOF |
|
| 92 |
+ |
|
| 77 | 93 |
%files -f %{name}.lang
|
| 78 | 94 |
%defattr(-,root,root) |
| 79 | 95 |
%dir %{_sysconfdir}/sysconfig/network-scripts
|
| 80 | 96 |
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/adjtime
|
| 81 | 97 |
%config(noreplace) %{_sysconfdir}/sysconfig/init
|
| 82 | 98 |
%config(noreplace) %{_sysconfdir}/sysconfig/netconsole
|
| 99 |
+%config(noreplace) %{_sysconfdir}/sysconfig/network
|
|
| 83 | 100 |
%config(noreplace) %{_sysconfdir}/sysconfig/readonly-root
|
| 84 | 101 |
%{_sysconfdir}/sysconfig/network-scripts/ifdown
|
| 85 | 102 |
%{_sysconfdir}/sysconfig/network-scripts/ifdown-post
|
| ... | ... |
@@ -162,6 +179,8 @@ rm -rf %{buildroot}%{_prefix}/lib/systemd
|
| 162 | 162 |
%{_sysconfdir}/profile.d/debug*
|
| 163 | 163 |
|
| 164 | 164 |
%changelog |
| 165 |
+* Tue Jan 05 2019 Ankit Jain <ankitja@vmware.com> 9.70-3 |
|
| 166 |
+- Added network configuration to fix "service --status-all" |
|
| 165 | 167 |
* Tue Dec 26 2017 Divya Thaluru <dthaluru@vmware.com> 9.70-2 |
| 166 | 168 |
- Fixed return code in /etc/init.d/functions bash script |
| 167 | 169 |
* Mon Apr 3 2017 Dheeraj Shetty <dheerajs@vmware.com> 9.70-1 |