forked from pool/systemd
40f2805040
- Fix hotplug memory in 80-hotplug-cpu-mem.rules - Make sure /var/lib/machines is created when systemd-container is installed OBS-URL: https://build.opensuse.org/request/show/584640 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1019
25 lines
923 B
Plaintext
25 lines
923 B
Plaintext
# 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. Instances of tmpfs are remounted so their
|
|
# size are recalculated. This might be needed if some sizes were
|
|
# specified relative to the total amount of memory (boo#869603). For
|
|
# now make it simple and remount all tmpfs regardless of how their
|
|
# size are specified. It should be handled by the kernel as it has a
|
|
# lot of shortcomings anyways (tmpfs mounted by other processes, mount
|
|
# namespaces, ...)
|
|
#
|
|
SUBSYSTEM=="memory", ACTION=="add", PROGRAM=="/usr/bin/systemd-detect-virt", RESULT!="zvm", ATTR{state}=="offline", \
|
|
ATTR{state}="online", \
|
|
RUN+="/bin/sh -c ' \
|
|
while read src dst fs opts unused; do \
|
|
case $fs in \
|
|
tmpfs) mount -o remount \"$dst\" ;; \
|
|
esac \
|
|
done </proc/self/mounts"
|