meta-phosphor: systemd: remove udev from USERADD_PACKAGES

The latest Yocto adds udev to the USERADD_PACKAGES set, which
causes it to have a RDEPENDS on "shadow".  We explicitly remove
shadow from our initramfs due to not wanting the size of it and
all the corresponding PAM modules.  Having it set breaks p10bmc
where we pull a udev-requiring script into the initramfs.

The only reason udev is currently in the USERADD_PACKAGES is due
to a need for a specific udev rule related to graphics adding a
`render` group.  Since this isn't applicable to the BMC, I'm
removing udev from the USERADD_PACKAGES for us.

Change-Id: I9b92dbefc691f91c179a0bfcb5bd228bb27b738a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meta-phosphor/recipes-core/systemd/systemd_%.bbappend b/meta-phosphor/recipes-core/systemd/systemd_%.bbappend
index b09f2e2..3663434 100644
--- a/meta-phosphor/recipes-core/systemd/systemd_%.bbappend
+++ b/meta-phosphor/recipes-core/systemd/systemd_%.bbappend
@@ -26,6 +26,14 @@
     ${exec_prefix}/lib/systemd/catalog/*.*.catalog \
 "
 
+# udev is added to the USERADD_PACKAGES due to some 'render' group
+# being necessary to create for /dev/dri handling, which we don't
+# have to worry about.  A side-effect of this is udev would RDEPEND on
+# 'shadow' which prevents us from putting it into the initramfs.  We
+# have plenty of other stuff that RDEPENDS on 'shadow' so, remove udev
+# from USERADD_PACKAGES to get around that.
+USERADD_PACKAGES:remove = "udev"
+
 ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
 ALTERNATIVE_PRIORITY[init] ?= "300"