diff --git a/make/bootstrap.mk b/make/bootstrap.mk index 3edbcd8b..8b708c25 100644 --- a/make/bootstrap.mk +++ b/make/bootstrap.mk @@ -59,7 +59,7 @@ endif mkdir -p $(TARGET_DIR)/var/spool/cron/crontabs mkdir -p $(PKG_CONFIG_PATH) make skeleton -ifeq ($(PERSISTENT_VAR_PARTITION), yes) +ifeq ($(BOXSERIES), hd2) ifeq ($(IMAGE_NEW), yes) touch -f $(TARGET_DIR)/var/etc/.newimage endif diff --git a/make/environment-target.mk b/make/environment-target.mk index 31574d3e..aebdbd79 100644 --- a/make/environment-target.mk +++ b/make/environment-target.mk @@ -62,7 +62,3 @@ remove-man2dir = $(remove-mandir)/man2 # ca-certificates CA-BUNDLE = ca-certificates.crt CA-BUNDLE_DIR = /etc/ssl/certs - -# ----------------------------------------------------------------------------- - -PERSISTENT_VAR_PARTITION = $(if $(filter $(BOXMODEL), apollo shiner kronos kronos_v2), yes, no) diff --git a/make/image-updates.mk b/make/image-updates.mk index a32a57b9..f3e230d9 100644 --- a/make/image-updates.mk +++ b/make/image-updates.mk @@ -58,7 +58,7 @@ u-neutrino-full: neutrino-clean ifneq ($(DEBUG), yes) find $(UPDATE_INST_DIR)/bin -type f ! -name *.sh -print0 | xargs -0 $(TARGET_STRIP) || true endif -ifeq ($(PERSISTENT_VAR_PARTITION), yes) +ifeq ($(BOXSERIES), hd2) # avoid overrides in user's var-partition mv $(UPDATE_INST_DIR)/var $(UPDATE_INST_DIR)/var_init endif diff --git a/make/target-rootfs.mk b/make/target-rootfs.mk index 3413a892..a793b7f3 100644 --- a/make/target-rootfs.mk +++ b/make/target-rootfs.mk @@ -50,7 +50,7 @@ endif rm -rf tmp; ln -sf /tmp tmp $(CD) $(TARGET_DIR)/etc; \ ln -sf /proc/mounts mtab -ifeq ($(PERSISTENT_VAR_PARTITION), yes) +ifeq ($(BOXSERIES), hd2) $(CD) $(TARGET_DIR)/etc; \ ln -sf /var/etc/exports exports; \ ln -sf /var/etc/fstab fstab; \