diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-15 09:56:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-20 12:01:16 +0000 |
commit | 0cd87a99dbec9bbb223370f2f867b59590975ef0 (patch) | |
tree | 4414e5df8475d7da0685bbee13a311690adbf2ef /alpine.mk | |
parent | 31bea672a2757f15acbefc1c6fc08ddc63954505 (diff) | |
download | abuild-0cd87a99dbec9bbb223370f2f867b59590975ef0.tar.gz abuild-0cd87a99dbec9bbb223370f2f867b59590975ef0.tar.bz2 abuild-0cd87a99dbec9bbb223370f2f867b59590975ef0.tar.xz abuild-0cd87a99dbec9bbb223370f2f867b59590975ef0.zip |
alpine.mk: use mtools to grate usb image
Diffstat (limited to 'alpine.mk')
-rwxr-xr-x | alpine.mk | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -234,10 +234,12 @@ MBRPATH := /usr/share/syslinux/mbr.bin $(USBIMG): $(ISOFS_DIRSTAMP) @echo "==> Generating $@" - @dd if=/dev/zero of=$(USBIMG) bs=1024 count=$(USBIMG_SIZE) - @mkfs.vfat $(USBIMG) >/dev/null + @mformat -C -v 'ALPINE' -c 16 -h 64 -n 32 -i $(USBIMG) \ + -t $$(($(USBIMG_SIZE) / 1200)) :: @syslinux $(USBIMG) - @MTOOLS_SKIP_CHECK=1 mcopy -i $(USBIMG) $(ISO_DIR)/* $(ISO_DIR)/.[a-z]* :: + @mcopy -i $(USBIMG) $(ISO_DIR)/* $(ISO_DIR)/.[a-z]* :: + @mcopy -i $(USBIMG) /dev/zero ::/zero 2>/dev/null || true + @mdel -i $(USBIMG) ::/zero USBIMG_SHA1 := $(USBIMG).sha1 $(USBIMG_SHA1): $(USBIMG) |