summaryrefslogtreecommitdiffstats
path: root/meta/classes/boot-directdisk.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-11-24 05:20:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:31:59 +0000
commitd3486244fa4c066d9b664f5f0d3e1e5e030cd260 (patch)
tree1f0a43970b57bc6c38263dd48c813f08a490c98b /meta/classes/boot-directdisk.bbclass
parent03f15e51998a3ef65a5b68cb7cbf724f4388c289 (diff)
downloadpoky-d3486244fa4c066d9b664f5f0d3e1e5e030cd260.tar.gz
boot-directdisk.bbclass: remove HDDIMG before create
Fixed when rebuild: mkdosfs: file /path/to/hdd.image already exists (From OE-Core rev: 9abcd309c098558360cde2bff65be840ead25f83) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/boot-directdisk.bbclass')
-rw-r--r--meta/classes/boot-directdisk.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass
index 600e21abcf..b324d89020 100644
--- a/meta/classes/boot-directdisk.bbclass
+++ b/meta/classes/boot-directdisk.bbclass
@@ -121,6 +121,8 @@ build_boot_dd() {
121 # done in blocks, thus the mod by 16 instead of 32. 121 # done in blocks, thus the mod by 16 instead of 32.
122 BLOCKS=$(expr $BLOCKS + $(expr 16 - $(expr $BLOCKS % 16))) 122 BLOCKS=$(expr $BLOCKS + $(expr 16 - $(expr $BLOCKS % 16)))
123 123
124 # Remove it since mkdosfs would fail when it exists
125 rm -f $HDDIMG
124 mkdosfs -n ${BOOTDD_VOLUME_ID} -S 512 -C $HDDIMG $BLOCKS 126 mkdosfs -n ${BOOTDD_VOLUME_ID} -S 512 -C $HDDIMG $BLOCKS
125 mcopy -i $HDDIMG -s $HDDDIR/* ::/ 127 mcopy -i $HDDIMG -s $HDDDIR/* ::/
126 128