Blame 0037-install-user-group-adm-for-journal.patch

Harald Hoyer 2d3fda
From d04f16f60047b3d4c52fb4799aa34462f7fe62b7 Mon Sep 17 00:00:00 2001
Harald Hoyer 2d3fda
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 2d3fda
Date: Thu, 5 Jul 2012 14:30:45 +0200
Harald Hoyer 2d3fda
Subject: [PATCH] install user/group adm for journal
Harald Hoyer 2d3fda
Harald Hoyer 2d3fda
---
Harald Hoyer 2d3fda
 modules.d/98systemd/module-setup.sh |    5 +++++
Harald Hoyer 2d3fda
 1 file changed, 5 insertions(+)
Harald Hoyer 2d3fda
Harald Hoyer 2d3fda
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
Harald Hoyer 2d3fda
index d712724..d20d18d 100755
Harald Hoyer 2d3fda
--- a/modules.d/98systemd/module-setup.sh
Harald Hoyer 2d3fda
+++ b/modules.d/98systemd/module-setup.sh
Harald Hoyer 2d3fda
@@ -101,6 +101,11 @@ install() {
Harald Hoyer 2d3fda
         fi
Harald Hoyer 2d3fda
     fi
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
+    # install adm user/group for journald
Harald Hoyer 2d3fda
+    dracut_install nologin
Harald Hoyer 2d3fda
+    egrep '^adm:' "$initdir/etc/passwd" 2>/dev/null >> "$initdir/etc/passwd"
Harald Hoyer 2d3fda
+    egrep '^adm:' /etc/group >> "$initdir/etc/group"
Harald Hoyer 2d3fda
+
Harald Hoyer 2d3fda
     ln -fs $systemdutildir/systemd "$initdir/init"
Harald Hoyer 2d3fda
 
Harald Hoyer 2d3fda
     rm -f "${initdir}${systemdsystemunitdir}/emergency.service"