make_chroot: uninstall openrc as needed

We don't need openrc in our chroot, so clear it out.  It actually
gets in the way when using our custom baselayout package.

BUG=chromium:267982
TEST=`cbuildbot chromiumos-sdk` works w/new and old stage3

Change-Id: I7eecba20b4160065236641d60afb022b3d37629f
Reviewed-on: https://gerrit.chromium.org/gerrit/64441
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Matt Tennant <mtennant@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/sdk_lib/make_chroot.sh b/sdk_lib/make_chroot.sh
index af1c2ce..3108825 100755
--- a/sdk_lib/make_chroot.sh
+++ b/sdk_lib/make_chroot.sh
@@ -432,6 +432,12 @@
 info "Updating portage"
 early_enter_chroot emerge -uNv --quiet portage
 
+# Clear out openrc if it's installed as we don't want it.
+if [[ -e ${FLAGS_chroot}/usr/share/openrc ]]; then
+  info "Uninstalling openrc"
+  early_enter_chroot env CLEAN_DELAY=0 emerge -qC sys-apps/openrc
+fi
+
 # Make sure we have python-2.x available.
 if [[ -z $(ls "${FLAGS_chroot}"/usr/bin/python2* 2>/dev/null) ]]; then
   info "Installing python-2.x"