浏览代码

fs/squashfs: fix image file permissions

Set image file permissions to 0644 like it was before the fs rework,
instead of the rather unhelpful 0700 (E.G. when image is used for tftp).

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter Korsgaard 15 年之前
父节点
当前提交
3975e30b99
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fs/squashfs/squashfs.mk

+ 2 - 1
fs/squashfs/squashfs.mk

@@ -19,7 +19,8 @@ endif
 
 
 define ROOTFS_SQUASHFS_CMD
 define ROOTFS_SQUASHFS_CMD
 	$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
 	$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend \
-		$(ROOTFS_SQUASHFS_ARGS)
+		$(ROOTFS_SQUASHFS_ARGS) && \
+	chmod 0644 $$@
 endef
 endef
 
 
 $(eval $(call ROOTFS_TARGET,squashfs))
 $(eval $(call ROOTFS_TARGET,squashfs))