Skip to content
Snippets Groups Projects
Commit d3b36e1c authored by Natanael Copa's avatar Natanael Copa
Browse files

alpine.mk: configureable free space on usb image

use USBIMG_FREE to set how many kB you want to have as free space on
usb image.
parent b1b97690
No related merge requests found
...@@ -229,7 +229,8 @@ $(ISO_SHA1): $(ISO) ...@@ -229,7 +229,8 @@ $(ISO_SHA1): $(ISO)
# USB image # USB image
# #
USBIMG := $(ALPINE_NAME)-$(ALPINE_RELEASE)-$(ALPINE_ARCH).img USBIMG := $(ALPINE_NAME)-$(ALPINE_RELEASE)-$(ALPINE_ARCH).img
USBIMG_SIZE = $(shell echo $$(( `du -s $(ISO_DIR) | awk '{print $$1}'` + 8192 )) ) USBIMG_FREE ?= 8192
USBIMG_SIZE = $(shell echo $$(( `du -s $(ISO_DIR) | awk '{print $$1}'` + $(USBIMG_FREE) )) )
MBRPATH := /usr/share/syslinux/mbr.bin MBRPATH := /usr/share/syslinux/mbr.bin
# the offset where the frist partition is found # the offset where the frist partition is found
USBIMG_OFFSET := 16384 USBIMG_OFFSET := 16384
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment