Bug 11633 - Duplicated entries in fstab created by wic when rebuilding an image
Summary: Duplicated entries in fstab created by wic when rebuilding an image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.4
Assignee: Ed Bartosh
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-06-08 12:31 UTC by Diego
Modified: 2017-06-26 08:48 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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