make_chroot: clear existing make.conf.user

We've been creating this as a self-referential symlink which means
we've been creating this file in the host distro.  Nuke the file
before we write to it.

TEST=`cros_sdk` still works

Change-Id: Ia07d1d4eeeb5bfabde07fb96e27d50fb5438e1b9
Tested-by: Mike Frysinger <>
Reviewed-by: Alex Klein <>
Commit-Queue: Mike Frysinger <>
diff --git a/sdk_lib/ b/sdk_lib/
index a651b70..6dcb257 100755
--- a/sdk_lib/
+++ b/sdk_lib/
@@ -209,6 +209,7 @@
    # Create make.conf.user .
+   rm -f "${FLAGS_chroot}"/etc/make.conf.user
    cat <<\EOF > "${FLAGS_chroot}"/etc/make.conf.user
 # This file is useful for doing global (chroot and all board) changes.
 # Tweak emerge settings, ebuild env, etc...