.tmp_depmod owned by root after modules_install

From: Christian Kujau
Date: Mon Jul 04 2011 - 05:49:21 EST


Hi,

when building a kernel with O=$DIR, I noticed that "modules_install" now
creates files under $DIR as root:

$ sudo make -C /usr/local/src/linux-2.6-git O=$HOME/trash/tmp/. modules_install
[...]

When trying to build a new kernel, removing $DIR as a normal user does no
longer work as everything under $HOME/trash/tmp/.tmp_depmod/ is now owned
by root (because of the "sudo"). This did not occur before and may be a
consequence of:

commit bfe5424a8b31624e7a476f959d552999f931e7c7
Author: Michal Marek <mmarek@xxxxxxx>
Date: Thu Jun 9 16:35:41 2011 +0200

kbuild: Hack for depmod not handling X.Y versions

Can this be changed somehow so that "make modules_install" does not write
anything under $DIR, as before?

Thanks,
Christian.
--
BOFH excuse #274:

It was OK before you touched it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/