Messages in this thread Patch in this message | | | Date | Sun, 4 Oct 1998 20:27:54 +0200 (CEST) | From | Geert Uytterhoeven <> | Subject | [PATCH] modules_install |
| |
Hi Linus,
`make modules_install' creates some temporary files inside the kernel source directory. However, if that directory is imported using NFS in the recommended and secure way, root is not allowed to create files there. This patch solves that problem by creating the temporary files in /tmp.
--- pre-2.1.124-2/Makefile.orig Sun Oct 4 20:05:16 1998 +++ pre-2.1.124-2/Makefile Sun Oct 4 20:20:34 1998 @@ -316,10 +316,10 @@ if [ -f VIDEO_MODULES ]; then inst_mod VIDEO_MODULES video; fi; \ if [ -f FC4_MODULES ]; then inst_mod FC4_MODULES fc4; fi; \ \ - ls *.o > .allmods; \ - echo $$MODULES | tr ' ' '\n' | sort | comm -23 .allmods - > .misc; \ - if [ -s .misc ]; then inst_mod .misc misc; fi; \ - rm -f .misc .allmods; \ + ls *.o > /tmp/.allmods.$$$$; \ + echo $$MODULES | tr ' ' '\n' | sort | comm -23 /tmp/.allmods.$$$$ - > /tmp/.misc.$$$$; \ + if [ -s /tmp/.misc.$$$$ ]; then inst_mod /tmp/.misc.$$$$ misc; fi; \ + rm -f /tmp/.misc.$$$$ /tmp/.allmods.$$$$; \ ) # modules disabled.... Greetings,
Geert
-- Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/ Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |