mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
boot-directdisk.bbclass: remove HDDIMG before create
Fixed when rebuild: mkdosfs: file /path/to/hdd.image already exists (From OE-Core rev: 69b49e8dc45cf60defba547d93e663df42c92127) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry-pick from 9abcd309c098558360cde2bff65be840ead25f83) Signed-off-by: Tim Kilbourn <tkilbourn@gmail.com> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
504e742a5e
commit
6b2102cd59
|
|
@ -121,6 +121,8 @@ build_boot_dd() {
|
|||
# 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
|
||||
mcopy -i $HDDIMG -s $HDDDIR/* ::/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user