mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
images: squashfs: xattrs should not depend on buld host
Enable xattr for the generated squashfs only if needed for SELinux. This eliminates warnings during boot on target when building (non-SELinux) OpenWrt on SELinux-enabled hosts like Fedora. Reported-by: fda77 <fda77@users.noreply.github.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
af76e26b55
commit
4baf47b9a8
@ -75,6 +75,7 @@ JFFS2OPTS += $(MKFS_DEVTABLE_OPT)
|
|||||||
SQUASHFS_BLOCKSIZE := $(CONFIG_TARGET_SQUASHFS_BLOCK_SIZE)k
|
SQUASHFS_BLOCKSIZE := $(CONFIG_TARGET_SQUASHFS_BLOCK_SIZE)k
|
||||||
SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE)
|
SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE)
|
||||||
SQUASHFSOPT += -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1'
|
SQUASHFSOPT += -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1'
|
||||||
|
SQUASHFSOPT += $(if $(CONFIG_SELINUX),-xattr,-no-xattrs)
|
||||||
SQUASHFSCOMP := gzip
|
SQUASHFSCOMP := gzip
|
||||||
LZMA_XZ_OPTIONS := -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2
|
LZMA_XZ_OPTIONS := -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2
|
||||||
ifeq ($(CONFIG_SQUASHFS_XZ),y)
|
ifeq ($(CONFIG_SQUASHFS_XZ),y)
|
||||||
|
Loading…
Reference in New Issue
Block a user