diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-04 13:05:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-04 13:05:31 +0000 |
commit | b150602a3831f7789cf299409f255c4c8dffb8f2 (patch) | |
tree | 1ec6a678374d7866114e8fd3f82f1f18abf094a0 /alpine.mk | |
parent | 896c436e140a4888c59135c7a2238e2ec4861632 (diff) | |
download | abuild-b150602a3831f7789cf299409f255c4c8dffb8f2.tar.gz abuild-b150602a3831f7789cf299409f255c4c8dffb8f2.tar.bz2 abuild-b150602a3831f7789cf299409f255c4c8dffb8f2.tar.xz abuild-b150602a3831f7789cf299409f255c4c8dffb8f2.zip |
alpine.mk: do not create a partition on usb image
saves us for lots of headache.
Diffstat (limited to 'alpine.mk')
-rwxr-xr-x | alpine.mk | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -232,19 +232,14 @@ USBIMG := $(ALPINE_NAME)-$(ALPINE_RELEASE)-$(ALPINE_ARCH).img USBIMG_FREE ?= 8192 USBIMG_SIZE = $(shell echo $$(( `du -s $(ISO_DIR) | awk '{print $$1}'` + $(USBIMG_FREE) )) ) MBRPATH := /usr/share/syslinux/mbr.bin -# the offset where the frist partition is found -USBIMG_OFFSET := 16384 $(USBIMG): $(ISOFS_DIRSTAMP) @echo "==> Generating $@" @dd if=/dev/zero of=$(USBIMG) bs=1024 count=$(USBIMG_SIZE) - @parted -s $(USBIMG) mklabel msdos - @parted -s $(USBIMG) mkpartfs primary fat32 0 \ - $$(( $(USBIMG_SIZE) * 1024 / 1000000)) - @parted -s $(USBIMG) set 1 boot on @dd if=$(MBRPATH) of=$(USBIMG) conv=notrunc - @syslinux -o $(USBIMG_OFFSET) $(USBIMG) - @mcopy -i $(USBIMG)@@$(USBIMG_OFFSET) $(ISO_DIR)/* $(ISO_DIR)/.[a-z]* :: + @mkfs.vfat $(USBIMG) >/dev/null + @syslinux $(USBIMG) + @mcopy -i $(USBIMG) $(ISO_DIR)/* $(ISO_DIR)/.[a-z]* :: USBIMG_SHA1 := $(USBIMG).sha1 $(USBIMG_SHA1): $(USBIMG) @@ -254,4 +249,6 @@ $(USBIMG_SHA1): $(USBIMG) $(ALPINE_NAME).img: $(USBIMG) @ln -sf $(USBIMG) $@ +img: $(ALPINE_NAME).img + sha1 release: $(ISO_SHA1) $(USBIMG_SHA1) |