Change-Id: I27e421e8b0d73bbfe67dcf6231d304afd983e634
Reviewed-on: http://photon-jenkins.eng.vmware.com/498
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,7 @@ |
| 0 |
+# |
|
| 1 |
+# VMware HotPlug automatization |
|
| 2 |
+# |
|
| 3 |
+# Automatically bring on-line added processors and memory. |
|
| 4 |
+# |
|
| 5 |
+ACTION=="add", SUBSYSTEM=="cpu", ATTR{online}="1"
|
|
| 6 |
+SUBSYSTEM=="memory", ACTION=="add", DEVPATH=="/devices/system/memory/memory*[0-9]", TEST=="state", ATTR{state}="online"
|
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Systemd-228 |
| 2 | 2 |
Name: systemd |
| 3 | 3 |
Version: 228 |
| 4 |
-Release: 5%{?dist}
|
|
| 4 |
+Release: 6%{?dist}
|
|
| 5 | 5 |
License: LGPLv2+ and GPLv2+ and MIT |
| 6 | 6 |
URL: http://www.freedesktop.org/wiki/Software/systemd/ |
| 7 | 7 |
Group: System Environment/Security |
| ... | ... |
@@ -9,6 +9,7 @@ Vendor: VMware, Inc. |
| 9 | 9 |
Distribution: Photon |
| 10 | 10 |
Source0: %{name}-%{version}.tar.gz
|
| 11 | 11 |
%define sha1 systemd=15475d874dc38f8d759f334bbcf7d8aff4b412da |
| 12 |
+Source1: 99-vmware-hotplug.rules |
|
| 12 | 13 |
#patch for ostree |
| 13 | 14 |
Patch0: systemd-228-mount.patch |
| 14 | 15 |
Patch1: 01-enoX-uses-instance-number-for-vmware-hv.patch |
| ... | ... |
@@ -93,6 +94,8 @@ mkdir -p %{buildroot}%{_localstatedir}/log/journal
|
| 93 | 93 |
#cp %{buildroot}/usr/share/factory/etc/pam.d/system-auth %{buildroot}%{_sysconfdir}/pam.d/system-auth
|
| 94 | 94 |
#cp %{buildroot}/usr/share/factory/etc/pam.d/other %{buildroot}%{_sysconfdir}/pam.d/other
|
| 95 | 95 |
find %{buildroot}%{_libdir} -name '*.la' -delete
|
| 96 |
+install -Dm 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/udev/rules.d
|
|
| 97 |
+ |
|
| 96 | 98 |
%post |
| 97 | 99 |
/sbin/ldconfig |
| 98 | 100 |
%postun |
| ... | ... |
@@ -114,6 +117,8 @@ rm -rf %{buildroot}/*
|
| 114 | 114 |
|
| 115 | 115 |
|
| 116 | 116 |
%changelog |
| 117 |
+* Wed Feb 03 2016 Anish Swaminathan <anishs@vmware.com> 228-6 |
|
| 118 |
+- Add hotplug udev rules. |
|
| 117 | 119 |
* Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 228-5 |
| 118 | 120 |
- Change config file attributes. |
| 119 | 121 |
* Wed Jan 06 2016 Anish Swaminathan <anishs@vmware.com> 228-4 |