From: Michal Marek on
On 7.6.2010 11:10, Rafael J. Wysocki wrote:
> Hi Michal,
>
> Unfortunately, your commit 73d1393eb8507ed5fd7f8e696f6b1ecc18035ebe
> (kbuild: Generate modules.builtin in make modules_install) broke my testing
> environment that had always worked before.
>
> Namely, I build kernels on a central machine and export the build directory
> along with the kernel sources over read-only NFS to test boxes. Then, on the
> test boxes I run "make modules_install", copy the kernel to /boot, run mkinitrd
> and so on. Now, after your commit above the "make modules_install" command on
> the test boxes doesn't work any more, because it tries to write to the build
> directory, which is mounted read-only.

I'll have a look, thanks for the report.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
From: Linus Torvalds on


On Mon, 7 Jun 2010, Rafael J. Wysocki wrote:
>
> Namely, I build kernels on a central machine and export the build directory
> along with the kernel sources over read-only NFS to test boxes. Then, on the
> test boxes I run "make modules_install", copy the kernel to /boot, run mkinitrd
> and so on. Now, after your commit above the "make modules_install" command on
> the test boxes doesn't work any more, because it tries to write to the build
> directory, which is mounted read-only.
>
> Please fix or revert.

Ahh. It's broken for another reason too. Even if it's a writable
filesystem, it means that there's a lot of files that get written by root
(since you have to be root to do the install). Which is very
uncomfortable, and we've tried very hard to avoid that.

So it _should_ be possible to do a build as a normal user, and then do the
install as root, and afterwards

find . -user root

should return the empty set (which in practice ends up being basically the
same thing as Rafaels requirement that it work on a read-only build).

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/