Skip to content
Snippets Groups Projects
Commit 7196f5d7 authored by Florian Fainelli's avatar Florian Fainelli
Browse files

image.mk: don't squash file permissions in JFFS2 images


Currently we call mkfs.jffs2 --squash, which will change
both file permissions and owners.

If we have some file with suid bits, it will clear these bits.

Thus it's enough to just squash file owners, by replacing that
argument to --squash-uids.

Signed-off-by: default avatarJonh Wendell <jonh.wendell@oiwifi.com.br>
Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>

SVN-Revision: 34397
parent 0588d13a
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,9 @@ KDIR=$(KERNEL_BUILD_DIR)
IMG_PREFIX:=openwrt-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))
ifneq ($(CONFIG_BIG_ENDIAN),)
JFFS2OPTS := --pad --big-endian --squash -v
JFFS2OPTS := --pad --big-endian --squash-uids -v
else
JFFS2OPTS := --pad --little-endian --squash -v
JFFS2OPTS := --pad --little-endian --squash-uids -v
endif
ifeq ($(CONFIG_JFFS2_RTIME),y)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment