summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPÁLI Gábor János <pali.gabor@gmail.com>2022-02-19 01:49:09 +0100
committerPÁLI Gábor János <pali.gabor@gmail.com>2022-02-19 01:49:09 +0100
commite89c68a5ec81b30542afe1ae0da5fcebc06060c2 (patch)
tree337874c67690257ce525426cd8343fcc77a2f82d /Makefile
parent47d81890b46e19edce97beee6fb99d855e053751 (diff)
downloadfreebsd-wifibox-alpine-e89c68a5ec81b30542afe1ae0da5fcebc06060c2.zip
Add support for guest identification.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2206c26..36e3e85 100644
--- a/Makefile
+++ b/Makefile
@@ -34,13 +34,19 @@ APPLIANCE_DIR= $(RUNDIR)/appliance
install:
$(MKDIR) -p $(GUESTDIR)
+
$(SED) ${_SUB_LIST_EXP} share/grub.cfg > $(SHAREDIR)/grub.cfg
$(TAR) -xf $(MINIROOTFS) -C $(GUESTDIR)
+
$(CP) -R guest/etc/* $(GUESTDIR)/etc/
+ $(ECHO) "VERSION=$(VERSION)" >> $(GUESTDIR)/etc/wifibox-guest
+
$(MKDIR) -p $(PACKAGEDIR)
$(CP) -R $(PACKAGES) $(PACKAGEDIR)/
$(CP) guest/setup.sh $(GUESTDIR)/
+
$(CHROOT) $(GUESTDIR) /bin/ash setup.sh
+
$(RM) -rf $(PACKAGEDIR)
$(RM) $(GUESTDIR)/setup.sh
$(RM) $(GUESTDIR)/busybox.core