Bug 5753 - wic rootfs creation use wrong file owner
Summary: wic rootfs creation use wrong file owner
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.6 M4
Assignee: Tom Zanussi
QA Contact: Andra Necula
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-01-23 10:23 UTC by Damien Merenne
Modified: 2014-09-22 06:43 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damien Merenne 2014-01-23 10:23:59 UTC
When creating an image using the wic tool, the ext3 fs is created with the current user as owner of all the file instead of root. Adding fakeroot 

scripts/lib/mic/kickstart/custom_commands/partition.py:240

populate_cmd = "fakeroot " + populate_script + " " + image_rootfs + " " + rootfs

fixes the problem.
Comment 1 Darren Hart 2014-01-23 15:40:45 UTC
Tom, this surprises me - is there perhaps a usage issue here?

Damien, what was the exact command you issued?
Comment 2 Tom Zanussi 2014-01-23 15:48:37 UTC
Also please specify which version of the build system you're using - there was a problem in initial versions, but it was fixed by using pseudo (in place of fakeroot).
Comment 3 Damien Merenne 2014-01-23 16:25:33 UTC
poky-dora-10.0.0

and the command I used is with a custom wks file that's just the directdisk.wks changed to install on sdb:


part /boot --source bootimg --ondisk sdb --fstype=msdos --label boot --active --align 1024
part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024

bootloader  --timeout=0  --append="rootwait rootfstype=ext3 console=tty0"


wic create directdisk-sdb.wks -e my-custom-image
Comment 4 Tom Zanussi 2014-01-23 16:34:46 UTC
Please try poky-dora-10.0.1 i.e. the 1.5.1 release - the problem should be fixed in that update.
Comment 5 Damien Merenne 2014-02-12 16:09:18 UTC
Indeed, it fixes the problem. Thanks!
Comment 6 Tom Zanussi 2014-02-12 23:52:16 UTC
Fixed in 1.5.1
Comment 7 Andra Necula 2014-09-22 06:43:22 UTC
Verified in Dora 1.5.1