From 0175bb7014e646ce70de0ea465f19dbe8fa0b596 Mon Sep 17 00:00:00 2001 From: Anita Zhang Date: Feb 11 2021 12:03:41 +0000 Subject: Create systemd-oom user in %pre --- diff --git a/systemd.spec b/systemd.spec index ea5f69d..b8634e4 100644 --- a/systemd.spec +++ b/systemd.spec @@ -624,6 +624,9 @@ getent passwd systemd-coredump &>/dev/null || useradd -r -l -g systemd-coredump getent group systemd-resolve &>/dev/null || groupadd -r -g 193 systemd-resolve 2>&1 || : getent passwd systemd-resolve &>/dev/null || useradd -r -u 193 -l -g systemd-resolve -d / -s /sbin/nologin -c "systemd Resolver" systemd-resolve &>/dev/null || : +getent group systemd-oom &>/dev/null || groupadd -r systemd-oom 2>&1 || : +getent passwd systemd-oom &>/dev/null || useradd -r -l -g systemd-oom -d / -s /sbin/nologin -c "systemd Userspace OOM Killer" systemd-oom &>/dev/null || : + %post systemd-machine-id-setup &>/dev/null || :