boot-directdisk.bbclass: remove HDDIMG before create
PATCH 1/1 boot-directdisk.bbclass: remove HDDIMG before create
From: Robert Yang <[email protected]>
Fixed when rebuild:
mkdosfs: file /path/to/hdd.image already exists
Signed-off-by Robert Yang <[email protected]>
Signed-off-by Ross Burton <[email protected]>
(cherry-pick from 9abcd309c098558360cde2bff65be840ead25f83)
Signed-off-by Tim Kilbourn <[email protected]>
--- meta/classes/boot-directdisk.bbclass | 2 ++ 1 file changed, 2 insertions(+)
meta/classes/boot-directdisk.bbclass +2 -0
@@ -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/* ::/
Signature · 1 line
1.9.1
Quoted 27 lines · Tim Kilbourn
From: Robert Yang <[email protected]>
Fixed when rebuild:
mkdosfs: file /path/to/hdd.image already existsSigned-off-by Robert Yang <[email protected]>Signed-off-by Ross Burton <[email protected]>(cherry-pick from
9abcd309c098558360cde2bff65be840ead25f83)Signed-off-by Tim Kilbourn <[email protected]>--- meta/classes/boot-directdisk.bbclass | 2 ++ 1 file changed, 2 insertions(+)meta/classes/boot-directdisk.bbclass +2
-1@@ -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/* ::/ --
Quoted 2 lines
1.9.1
This one has bitten us too. +1
Quoted 5 lines
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core