2015-09-27 14:32:31 +02:00
|
|
|
---
|
|
|
|
Makefile.am | 4 ++++
|
|
|
|
rules/80-hotplug-cpu-mem.rules | 12 ++++++++++++
|
|
|
|
2 files changed, 16 insertions(+)
|
|
|
|
|
|
|
|
Index: systemd-221/Makefile.am
|
|
|
|
===================================================================
|
|
|
|
--- systemd-221.orig/Makefile.am
|
|
|
|
+++ systemd-221/Makefile.am
|
|
|
|
@@ -3841,6 +3841,10 @@ dist_udevrules_DATA += \
|
|
|
|
rules/73-seat-numlock.rules
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
+dist_udevrules_DATA += \
|
|
|
|
+ rules/80-hotplug-cpu-mem.rules
|
|
|
|
+
|
|
|
|
+# ------------------------------------------------------------------------------
|
|
|
|
mtd_probe_SOURCES = \
|
|
|
|
src/udev/mtd_probe/mtd_probe.c \
|
|
|
|
src/udev/mtd_probe/mtd_probe.h \
|
|
|
|
Index: systemd-221/rules/80-hotplug-cpu-mem.rules
|
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
|
|
|
+++ systemd-221/rules/80-hotplug-cpu-mem.rules
|
2014-07-16 16:36:37 +02:00
|
|
|
@@ -0,0 +1,12 @@
|
2013-06-24 09:46:00 +02:00
|
|
|
+# do not edit this file, it will be overwritten on update
|
|
|
|
+
|
|
|
|
+# Hotplug physical CPU
|
|
|
|
+SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", \
|
|
|
|
+ ATTR{online}="1"
|
|
|
|
+
|
|
|
|
+# Hotplug physical memory
|
|
|
|
+SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", \
|
2014-07-16 16:36:37 +02:00
|
|
|
+ ATTR{state}="online", TAG+="tmpfs"
|
|
|
|
+
|
|
|
|
+#
|
|
|
|
+TAG=="tmpfs", RUN+="/usr/lib/udev/remount-tmpfs"
|