[ELDK] [PATCH RFSB] CRAMFS: make all files owned by root

Wolfgang Denk wd at denx.de
Thu Apr 29 22:15:14 CEST 2010


Especially when installing non-BusyBox tools there may result problems
when the files in the target file system are not owned by root (for
example, /bin/mount will stop working - it's setuid root normally).
Use option "-q" when running ``mkcramfs'' to fix this.

Signed-off-by: Wolfgang Denk <wd at denx.de>
Cc: Detlev Zundel <dzu at denx.de>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index dc7601c..1264361 100644
--- a/Makefile
+++ b/Makefile
@@ -295,7 +295,7 @@ image_cramfs:	$(CRAMFS_FILE)
 
 $(CRAMFS_FILE):	$(STAMP_ROOTFS)
 	@echo Generating CRamFS
-	mkcramfs $(CRAMFS_FLAGS) -D $(DEV_TAB) $(BUILD_RFS) $(CRAMFS_FILE)
+	mkcramfs $(CRAMFS_FLAGS) -q -D $(DEV_TAB) $(BUILD_RFS) $(CRAMFS_FILE)
 
 image_squashfs:	$(SQUASHFS_FILE)
 
-- 
1.6.2.5



More information about the eldk mailing list