Skip to content

Commit ab2fc17

Browse files
committed
targets/qemu.mk: use ext4 for USB image to support >4GB ISOs
VFAT (FAT32) has a 4GB file size limit which breaks large ISOs. ext4 has no file size limit and is supported by all heads initrds (CONFIG_EXT4_FS=y in all configs). Signed-off-by: Thierry Laurion <insurgo@riseup.net>
1 parent d5b268c commit ab2fc17

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

targets/qemu.mk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ $(MEMORY_SIZE_FILE):
4545
@echo "$(QEMU_MEMORY_SIZE)" >"$(MEMORY_SIZE_FILE)"
4646
USB_FD_IMG=$(build)/$(BOARD)/usb_fd.raw
4747
$(USB_FD_IMG):
48-
dd if=/dev/zero bs=1M of="$(USB_FD_IMG)" bs=1M count=256 >/dev/null 2>&1
49-
# Debian obnoxiously does not include /usr/sbin in PATH for non-root, even
50-
# though it is meaningful to use mkfs.vfat (etc.) as non-root
51-
MKFS_VFAT=mkfs.vfat; \
52-
[ -x /usr/sbin/mkfs.vfat ] && MKFS_VFAT=/usr/sbin/mkfs.vfat; \
53-
"$$MKFS_VFAT" "$(USB_FD_IMG)"
48+
dd if=/dev/zero bs=1M of="$(USB_FD_IMG)" bs=1G count=64 >/dev/null 2>&1
49+
mkfs.exfat "$(USB_FD_IMG)"
5450
# Pass INSTALL_IMG=<path_to_img.iso> to attach an installer as a USB flash drive instead
5551
# of the temporary flash drive for exporting GPG keys.
5652
ifneq "$(INSTALL_IMG)" ""

0 commit comments

Comments
 (0)