<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
color:black;}
p.emailquote, li.emailquote, div.emailquote
{mso-style-name:emailquote;
mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:1.0pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.E-MailFormatvorlage22
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage23
{mso-style-type:personal-reply;
font-family:"Arial","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1441796584;
mso-list-type:hybrid;
mso-list-template-ids:1920525086 67567633 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Hi Randy,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">FYI<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">I created a completely new poky clone.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Then I set up a config for “genericx86” and built a core-image-minimal<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Here are the results<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Using “thud” branch -> problem persisted<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><span style="mso-list:Ignore">2)<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Using “warrior” branch </span><span lang="EN-US" style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">à</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">
problem solved<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Jochen<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Behnke, Jochen
<br>
<b>Gesendet:</b> Montag, 26. August 2019 10:18<br>
<b>An:</b> 'Randy MacLeod'<br>
<b>Betreff:</b> AW: AW: [yocto] wic create - bad ownership of directories inside image<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Hi Randy,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">removing my core-image-minimal.bbappend does not change anything.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">I still get the same behavior.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Here are my version<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">poky 2.6.1
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">$ bitbake –version<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">-> 1.40.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">The next step would be to upgrade my poky to the latest version.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Right now I can’t do that, but I’ll give it a try in the next few weeks.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D">Many thanks for your assistance.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">Jochen<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Randy MacLeod [mailto:randy.macleod@windriver.com]
<br>
<b>Gesendet:</b> Samstag, 24. August 2019 00:21<br>
<b>An:</b> Behnke, Jochen; yocto Mailingliste (yocto@yoctoproject.org)<br>
<b>Betreff:</b> Re: AW: [yocto] wic create - bad ownership of directories inside image<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 8/22/19 11:23 AM, Behnke, Jochen wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><a name="BM_BEGIN"></a><span style="font-size:10.0pt">Hello Randy,<br>
<br>
thanks for your reponse and sorry for my late reaction.<br>
<br>
In order to test, if the problem can be reproduced reliably, I performed a clean rebuild as follows<br>
<br>
$ source oe-init-build-env build-tca5-32<br>
$ rm -rf tmp<br>
$ rm -rf sstate-cache<br>
$ bitbake core-image-minimal<br>
$ wic create mkefidisk -e core-image-minmal<br>
<br>
I then mounted the resulting image file "mkefidisk-201908221701-sda.direct" using a loopback device (losetup)<br>
Inside the Image all directories have UID/GID 1000/1000, which corresponds to my host user.<br>
Files however have UID/GID 0/0.</span><o:p></o:p></p>
</div>
</blockquote>
<p>Hi Jochen,<o:p></o:p></p>
<p>I'm not able to reproduce the error, see below (1).<o:p></o:p></p>
<p>What version of oe-core/bitbake are you using?<o:p></o:p></p>
<p>I'm using the latest master branches:<o:p></o:p></p>
<p style="margin-bottom:12.0pt">oe-core: 64f9fd2a1e quilt: added less to RDEPENDS list<br>
bitbake: 28b3f0d8 runqueue: Optimise build_taskdepdata slightly<o:p></o:p></p>
<p><o:p> </o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><br>
So the answer to your question is "yes I can reproduce the behavior".<br>
<br>
One sidenote<br>
- I am using an appended core-image-minimal not the default</span><o:p></o:p></p>
</div>
</blockquote>
<p><o:p> </o:p></p>
<p><o:p> </o:p></p>
<p>What is the bbappend? Is it publicly clonable? What happens if you drop that addition?<o:p></o:p></p>
<p>../Randy<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>(1)<o:p></o:p></p>
<p>I followed your steps above and mounted my image as follows:<o:p></o:p></p>
<p>$ fdisk -l mkefidisk-201908230902-sda.direct<br>
Disk mkefidisk-201908230902-sda.direct: 94.4 MiB, 98956288 bytes, 193274 sectors<br>
Units: sectors of 1 * 512 = 512 bytes<br>
Sector size (logical/physical): 512 bytes / 512 bytes<br>
I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
Disklabel type: gpt<br>
Disk identifier: 1E5F9B4E-ED8A-4677-82CD-7B146807C145<br>
<br>
Device Start End Sectors Size Type<br>
mkefidisk-201908230902-sda.direct1 2048 51433 49386 24.1M Microsoft basic data<br>
mkefidisk-201908230902-sda.direct2 53248 103127 49880 24.4M Linux filesystem<br>
mkefidisk-201908230902-sda.direct3 103128 193239 90112 44M Linux swap<o:p></o:p></p>
<p><o:p> </o:p></p>
<p># 53248*512 = 27262976<o:p></o:p></p>
<p>$ sudo mount -o loop,offset=27262976 ./mkefidisk-201908230902-sda.direct /mnt/loop<o:p></o:p></p>
<p>$ ls -l /mnt/loop/bin/busybox.nosuid <br>
-rwxr-xr-x 1 root root 625296 Aug 23 11:45 /mnt/loop/bin/busybox.nosuid<o:p></o:p></p>
<p>$ ls -l /mnt/loop/usr | head -3<br>
total 10<br>
drwxr-xr-x 2 root root 3072 Aug 23 11:52 bin<br>
drwxr-xr-x 2 root root 1024 Aug 23 11:29 games<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>../Randy<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">- In my other image I am using qt5 (v5.12)<br>
<br>
<br>
<br>
Regards<br>
Jochen<br>
<br>
On 8/12/19 5:11 AM, Behnke, Jochen wrote:<br>
> Hello,<br>
> <br>
> I am using poky 2.6.1 (thud) and create images using the wic utility.<br>
> <br>
> Recently I noticed that all directories contained in the created image <br>
> are owned by UID 1000 and not by root. The files inside the image <br>
> however are owned by root.<br>
> <br>
> The UID 1000 refers to my unprivileged user on the host system.<br>
> <br>
> Here is the command I use to create the image<br>
> <br>
> “wic create mkefidisk –e core-image-minimal”<br>
> <br>
> The images created by bitbake directly (.tar.bz2, .hddimg) are correct <br>
> so this seems to be a wic related problem.<br>
> <br>
> Does anybody have a solution for this?<br>
<br>
Hi Jochen,<br>
<br>
No and I've never seen this particular extreme symptom.<br>
<br>
There is a known, generally rare bug:<br>
Bug 12434 - pseudo: Incorrect UID/GID in packaged files<br>
<a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434">https://bugzilla.yoctoproject.org/show_bug.cgi?id=12434</a><br>
but that usually shows up when building.<br>
<br>
You could check you build logs for the generic stings from:<br>
<br>
glibc-locale-2.26: glibc-locale:<br>
/glibc-binary-localedata-en-gb/usr/lib/locale/en_GB/LC_MEASUREMENT<br>
is owned by uid 3004, which is the same as the user running bitbake.<br>
This may be due to host contamination [host-user-contaminated]<br>
<br>
<br>
Is your issue 100% reproducible?<br>
<br>
../Randy<br>
<br>
<br>
> <br>
> Many thanks in advance, any hint is appreciated.<br>
> <br>
> Regards<br>
> <br>
> Jochen<br>
> <br>
> <gfidisc.SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000><br>
> <br>
> <br>
> __________________________________<br>
> *SCHMIDT Technology GmbH*<br>
> Feldbergstrasse 1<br>
> 78112 St. Georgen/Germany<br>
> Telefon +49 (0) 77 24 / 89 90<br>
> Fax +49 (0) 77 24 / 89 91 01<br>
> <a href="mailto:info@schmidttechnology.de">info@schmidttechnology.de</a> <<a href="mailto:info@schmidttechnology.de">mailto:info@schmidttechnology.de</a>><br>
> <a href="http://www.schmidttechnology.de">http://www.schmidttechnology.de</a><br>
> <br>
> USt-Id Nr. DE 811725105 · Registergericht Freiburg HRB 600 755<br>
> Geschaeftsfuehrung: Oliver Schmidt, Stephan Schmidt<br>
> <br>
> <gfidisc.SID=010500000000000515000000993c4a7a4675257c8b2de024250d0000><br>
> <br>
> <br>
> <br>
<br>
<br>
-- <br>
# Randy MacLeod<br>
# Wind River Linux</span><o:p></o:p></p>
</div>
</blockquote>
<p><o:p> </o:p></p>
<pre>-- <o:p></o:p></pre>
<pre># Randy MacLeod<o:p></o:p></pre>
<pre># Wind River Linux<o:p></o:p></pre>
</div>
</div>
</div>
</body>
</html>