Re: [kbuild-devel] make install with nfs root_squash
On Thu, Apr 19, 2007 at 10:59:23AM -0400, Frank Mori Hess wrote: On Wednesday 18 April 2007 16:39 pm, you wrote: Is there any reason that a make modules_install has to modify files in the source tree? This should not happen. (I do not know the root_squash option but that should not matter). Can you please try: make V=1 modules_install and post the output. Oops, it turns out the problem was actually occurring during make modules not make modules_install. I'm calling kbuild through some autoconf generated Makefiles, and autoconf always wants the install target to depend on the all target. This results in the kernel's make modules getting re-run as root before make modules_install. This fails due to the .tmp_versions and similar getting unconditionally rebuilt during make modules (output attached). I've worked around it by having the autoconf make all target ignore errors from the invocation of the kernel's make modules. OK - thanks for reporting back the real issue. Sam - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel
[kbuild-devel] make install with nfs root_squash
Hi, I'm encountering some annoyances building (out-of-tree) modules on an NFS filesystem. The NFS filesystem is exported with the default root_squash option. When I build as a normal user, then su to root to do the final make modules_install, it fails with permission denied. For example, modules_install tries to delete all the files in the .tmp_versions subdirectory, or tries to write to Module.symvers, but the nfs root_squash prevents root from having any special write permissions. I've verified this problem with 2.6.18 and 2.6.20 kernels. It didn't happen with the old kernel I was using (2.6.8). Is there any reason that a make modules_install has to modify files in the source tree? -- Frank pgpNRZi4CU9QN.pgp Description: PGP signature - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel
Re: [kbuild-devel] make install with nfs root_squash
On Wed, Apr 18, 2007 at 03:27:53PM -0400, Frank Mori Hess wrote: Hi, I'm encountering some annoyances building (out-of-tree) modules on an NFS filesystem. The NFS filesystem is exported with the default root_squash option. When I build as a normal user, then su to root to do the final make modules_install, it fails with permission denied. For example, modules_install tries to delete all the files in the .tmp_versions subdirectory, or tries to write to Module.symvers, but the nfs root_squash prevents root from having any special write permissions. I've verified this problem with 2.6.18 and 2.6.20 kernels. It didn't happen with the old kernel I was using (2.6.8). Is there any reason that a make modules_install has to modify files in the source tree? This should not happen. (I do not know the root_squash option but that should not matter). Can you please try: make V=1 modules_install and post the output. Sam - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ kbuild-devel mailing list kbuild-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kbuild-devel