From 469e56b1a7c8da38cb4c572c5609c86b8c9768dd Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 2 Jun 2016 13:49:33 +0300 Subject: image-live, image-vm, wic: Remove fs size workaround Since mtools has been patched to live with filesystems with sizes not divisible by sectors-per-track, we no longer need to try to set the size based on our guess of the sectors-per-track dosfstools is going to use. (From OE-Core rev: 334e32af88b310ff1ed950d127a6dedeb460f8d0) Signed-off-by: Jussi Kukkonen Signed-off-by: Richard Purdie --- meta/classes/image-live.bbclass | 6 ------ meta/classes/image-vm.bbclass | 6 ------ 2 files changed, 12 deletions(-) (limited to 'meta/classes') diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass index ea6ced2dcb..f0e6647ac1 100644 --- a/meta/classes/image-live.bbclass +++ b/meta/classes/image-live.bbclass @@ -202,12 +202,6 @@ build_fat_img() { # Determine the final size in blocks accounting for some padding BLOCKS=$(expr $(expr $SECTORS / 2) + ${BOOTIMG_EXTRA_SPACE}) - # Ensure total sectors is an integral number of sectors per - # track or mcopy will complain. Sectors are 512 bytes, and we - # generate images with 32 sectors per track. This calculation is - # done in blocks, thus the mod by 16 instead of 32. - BLOCKS=$(expr $BLOCKS + $(expr 16 - $(expr $BLOCKS % 16))) - # mkdosfs will sometimes use FAT16 when it is not appropriate, # resulting in a boot failure from SYSLINUX. Use FAT32 for # images larger than 512MB, otherwise let mkdosfs decide. diff --git a/meta/classes/image-vm.bbclass b/meta/classes/image-vm.bbclass index 2bbd9d3671..72f7b4b101 100644 --- a/meta/classes/image-vm.bbclass +++ b/meta/classes/image-vm.bbclass @@ -66,12 +66,6 @@ build_boot_dd() { BLOCKS=`du -bks $HDDDIR | cut -f 1` BLOCKS=`expr $BLOCKS + ${BOOTDD_EXTRA_SPACE}` - # Ensure total sectors is an integral number of sectors per - # track or mcopy will complain. Sectors are 512 bytes, and we - # generate images with 32 sectors per track. This calculation is - # done in blocks, thus the mod by 16 instead of 32. - BLOCKS=$(expr $BLOCKS + $(expr 16 - $(expr $BLOCKS % 16))) - # Remove it since mkdosfs would fail when it exists rm -f $HDDIMG mkdosfs -n ${BOOTDD_VOLUME_ID} -S 512 -C $HDDIMG $BLOCKS -- cgit 1.2.3-korg