<html><head></head><body><div>Hi Ed,</div><div><br></div><div>May you also apply this patch to jethro branch please ?</div><div>Wks-created images requires also running mkswap on the target but it shouldn't be necessary.</div><div><br></div><div>Best regards,</div><div>François</div><div><br></div><div class="-x-evo-paragraph -x-evo-top-signature-spacer"><br></div><div>Le lundi 29 février 2016 à 17:11 +0200, Ed Bartosh a écrit&nbsp;:</div><blockquote type="cite"><pre>Hi Cristopher,

Thank you for the patch!

Acked-by: Ed Bartosh &lt;ed.bartosh-VuQAYsv1563Yd54FQh9/<a href="mailto:CA@public.gmane.org">CA@public.gmane.org</a>&gt;

On Thu, Feb 25, 2016 at 10:21:49AM -0700, Christopher Larson wrote:
<blockquote type="cite">
From: Christopher Larson &lt;<a href="mailto:chris_larson-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org">chris_larson-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org</a>&gt;

We were creating the partition, mkswap'ing it, and then not dd'ing it into
place in the final image, as source_file wasn't being set for swap partitions.
This would result in a swap partition that couldn't be enabled on target until
mkswap was run.

Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org">chris_larson-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org</a>&gt;
---
 scripts/lib/wic/kickstart/custom_commands/partition.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py
index eee25a4..a0e74aa 100644
--- a/scripts/lib/wic/kickstart/custom_commands/partition.py
+++ b/scripts/lib/wic/kickstart/custom_commands/partition.py
@@ -173,6 +173,7 @@ class Wic_PartData(FC4_PartData):
             if self.fstype and self.fstype == "swap":
                 self.prepare_swap_partition(cr_workdir, oe_builddir,
                                             native_sysroot)
+                self.source_file = "%s/fs.%s" % (cr_workdir, self.fstype)
             elif self.fstype:
                 rootfs = "%s/fs_%s.%s.%s" % (cr_workdir, self.label,
                                              self.lineno, self.fstype)
-- 
2.2.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core-ZwoEplunGu3dfDuKDZ/<a href="mailto:zN51Ccm5ICvs9@public.gmane.org">zN51Ccm5ICvs9@public.gmane.org</a>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a>
</blockquote>

-- 
--
Regards,
Ed
</pre></blockquote></body></html>