Bug 11633

Summary: Duplicated entries in fstab created by wic when rebuilding an image
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Diego <diego.ml>
Component: Scripts and ToolsAssignee: Ed Bartosh <eduard.bartosh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 2.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Diego 2017-06-08 12:31:41 UTC
Sometimes it happens that when you build multiple times an image using wic and a partition which is not "/" or "/boot", you end up with duplicated entries in fstab.

Example wks:
include sdimage-bootpart.wks

part /recovery --size 500 --ondisk mmcblk0 --fstype=ext4 --label recovery --align 4


By building multiple times I (sometimes) got duplicated (or replicated n-times, depending on the number of builds):
/dev/mmcblk0p3  /recovery       ext4    defaults        0       0
/dev/mmcblk0p3  /recovery       ext4    defaults        0       0


I must admit I was tinkering with WIC variables and scripts (appending to WICVARS, playing with custom plugins), so it might be caused by some interrupted wic execution (WicError).
Comment 1 Ed Bartosh 2017-06-16 14:58:27 UTC
Should be fixed by this patch: http://lists.openembedded.org/pipermail/openembedded-core/2017-June/138383.html

Please, review
Comment 3 Ed Bartosh 2017-06-26 08:48:43 UTC
The fix has been merged to poky master. commit id: 44023e6c41a57d93d7b3a7c6d297e1ca77cd69ff