Skip to content

Commit

Permalink
gluon-core: add option to exclude upgrade scripts that alter system i…
Browse files Browse the repository at this point in the history
…nvasivly

This allows the user to build a "vanilla" image that can still include 
gluon components such as gluon-mmfd easily
  • Loading branch information
mkg20001 committed Feb 5, 2023
1 parent e5be1a6 commit 7fe4581
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package/gluon-core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ config GLUON_VERSION
config GLUON_MINIFY
bool "Minify Gluon scripts"
default y

config GLUON_BASE
bool "Exclude everything except the very most basic"
default n
endef

define Package/gluon-core/conffiles
Expand All @@ -38,6 +42,10 @@ define Package/gluon-core/install

$(INSTALL_DIR) $(1)/lib/gluon
echo '$(call qstrip,$(CONFIG_GLUON_VERSION))' > $(1)/lib/gluon/gluon-version

ifdef CONFIG_GLUON_BASE
find $(1)/lib/gluon/upgrade/ -type f -and ! -name "998-commit" -and ! -name "005-set-domain" -and ! -name "010-primary-mac" -and ! -name "030-system" -and ! -name "120-ntp-servers" -and ! -name "150-poe-passthrough" -and ! -name "300-firewall-rules" -and ! -name "820-dns-config" -and ! -name "999-version" -delete
endif
endef

$(eval $(call BuildPackageGluon,gluon-core))

0 comments on commit 7fe4581

Please sign in to comment.