<div dir="ltr">I was hoping to get this simple work around in all release branches and then if the root issue is found and fixed, we can test it a bit longer in master.<div><br></div><div>I&#39;ll double check the actual commit, but I&#39;m sure I see this behavior in dizzy (and the work around was also first tested in dizzy, because that was blocking us in building small enough initramfs image).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 21, 2015 at 8:24 AM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, 2015-04-20 at 15:05 +0200, Martin Jansa wrote:<br>
&gt; On Fri, Apr 10, 2015 at 04:06:14PM +0200, Martin Jansa wrote:<br>
&gt; &gt; * install populate-extfs.sh from contrib, be aware that in order<br>
&gt; &gt;   to use it you need to set DEBUGFS shell variable, otherwise it will<br>
&gt; &gt;   try to use debugfs from relative path which is almost always<br>
&gt; &gt;   incorrect:<br>
&gt; &gt;     CONTRIB_DIR=$(dirname $(readlink -f $0))<br>
&gt; &gt;     DEBUGFS=&quot;$CONTRIB_DIR/../debugfs/debugfs&quot;<br>
&gt; &gt;<br>
&gt; &gt; * use symlinks to install e2fsck, mke2fs, without this option we have:<br>
&gt; &gt;   $ ls -lahi tmp-glibc/work/arm920tt-oe-linux-gnueabi/e2fsprogs/1.42.9-r0/image/sbin/<br>
&gt; &gt;   ...<br>
&gt; &gt;   101982430 -rwxr-xr-x 5 bitbake bitbake 972K Apr 10 15:43 e2fsck<br>
&gt; &gt;   101982430 -rwxr-xr-x 5 bitbake bitbake 972K Apr 10 15:43 fsck.ext2<br>
&gt; &gt;   101982430 -rwxr-xr-x 5 bitbake bitbake 972K Apr 10 15:43 fsck.ext3<br>
&gt; &gt;   101982430 -rwxr-xr-x 5 bitbake bitbake 972K Apr 10 15:43 fsck.ext4<br>
&gt; &gt;   101982430 -rwxr-xr-x 5 bitbake bitbake 972K Apr 10 15:43 fsck.ext4dev<br>
&gt; &gt;   ...<br>
&gt; &gt;   101982441 -rwxr-xr-x 5 bitbake bitbake 348K Apr 10 15:43 mke2fs<br>
&gt; &gt;   101982441 -rwxr-xr-x 5 bitbake bitbake 348K Apr 10 15:43 mkfs.ext2<br>
&gt; &gt;   101982441 -rwxr-xr-x 5 bitbake bitbake 348K Apr 10 15:43 mkfs.ext3<br>
&gt; &gt;   101982441 -rwxr-xr-x 5 bitbake bitbake 348K Apr 10 15:43 mkfs.ext4<br>
&gt; &gt;   101982441 -rwxr-xr-x 5 bitbake bitbake 348K Apr 10 15:43 mkfs.ext4dev<br>
&gt; &gt;   ...<br>
&gt; &gt;<br>
&gt; &gt;   which would be OK, because they are hadlinks, but after runstrip in<br>
&gt; &gt;   do_package we get one stripped binary and 4 hardlinks to the original<br>
&gt; &gt;   one:<br>
&gt; &gt;<br>
&gt; &gt;   $ ls -lahi tmp-glibc/work/arm920tt-oe-linux-gnueabi/e2fsprogs/1.42.9-r0/packages-split/e2fsprogs-e2fsck/sbin<br>
&gt; &gt;   101982713 -rwxr-xr-x 8 bitbake bitbake 972K Apr 10 15:43 e2fsck<br>
&gt; &gt;   101982713 -rwxr-xr-x 8 bitbake bitbake 972K Apr 10 15:43 fsck.ext2<br>
&gt; &gt;   101982713 -rwxr-xr-x 8 bitbake bitbake 972K Apr 10 15:43 fsck.ext3<br>
&gt; &gt;   101982713 -rwxr-xr-x 8 bitbake bitbake 972K Apr 10 15:43 fsck.ext4<br>
&gt; &gt;   101983136 -rwxr-xr-x 2 bitbake bitbake 185K Apr 10 15:43 fsck.ext4dev<br>
&gt; &gt;   $ ls -lahi tmp-glibc/work/arm920tt-oe-linux-gnueabi/e2fsprogs/1.42.9-r0/packages-split/e2fsprogs-mke2fs/sbin/<br>
&gt; &gt;   101982716 -rwxr-xr-x 8 bitbake bitbake 348K Apr 10 15:43 mke2fs<br>
&gt; &gt;   101982716 -rwxr-xr-x 8 bitbake bitbake 348K Apr 10 15:43 mkfs.ext2<br>
&gt; &gt;   101988266 -rwxr-xr-x 2 bitbake bitbake  72K Apr 10 15:43 mkfs.ext3<br>
&gt; &gt;   101982716 -rwxr-xr-x 8 bitbake bitbake 348K Apr 10 15:43 mkfs.ext4<br>
&gt; &gt;   101982716 -rwxr-xr-x 8 bitbake bitbake 348K Apr 10 15:43 mkfs.ext4dev<br>
&gt; &gt;<br>
&gt; &gt;   That&#39;s super annoying for big files like this which are often include<br>
&gt; &gt;   in small recovery images. Using --enable-symlink-install option results<br>
&gt; &gt;   in one stripped binary and 4 symlinks:<br>
&gt; &gt;<br>
&gt; &gt;   $ ls -lahi tmp-glibc/work/arm920tt-oe-linux-gnueabi/e2fsprogs/1.42.9-r0/packages-split/e2fsprogs-e2fsck/sbin/<br>
&gt; &gt;   102113806 -rwxr-xr-x 2 bitbake bitbake 185K Apr 10 15:50 e2fsck<br>
&gt; &gt;   102113813 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 fsck.ext2 -&gt; e2fsck<br>
&gt; &gt;   102113814 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 fsck.ext3 -&gt; e2fsck<br>
&gt; &gt;   102113812 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 fsck.ext4 -&gt; e2fsck<br>
&gt; &gt;   102113815 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 fsck.ext4dev -&gt; e2fsck<br>
&gt; &gt;   $ ls -lahi tmp-glibc/work/arm920tt-oe-linux-gnueabi/e2fsprogs/1.42.9-r0/packages-split/e2fsprogs-mke2fs/sbin/<br>
&gt; &gt;   102113804 -rwxr-xr-x 2 bitbake bitbake  72K Apr 10 15:50 mke2fs<br>
&gt; &gt;   102113825 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 mkfs.ext2 -&gt; mke2fs<br>
&gt; &gt;   102113826 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 mkfs.ext3 -&gt; mke2fs<br>
&gt; &gt;   102113823 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 mkfs.ext4 -&gt; mke2fs<br>
&gt; &gt;   102113824 lrwxrwxrwx 1 bitbake bitbake    6 Apr 10 15:50 mkfs.ext4dev -&gt; mke2fs<br>
&gt; &gt;<br>
&gt; &gt;   Saving cca 1,5MB.<br>
&gt;<br>
&gt; Ping, this is needed also in fido and dizzy branches.<br>
<br>
</div></div>I&#39;m still hoping we can fix the packaging code so that we avoid this<br>
problem with hardlinked files which is why I&#39;m holding off this<br>
slightly.<br>
<br>
Also, are you sure this problem applies in dizzy? The change the<br>
introduced this problem wasn&#39;t in dizzy as far as I remember but I could<br>
be wrong...<br>
<br>
Cheers,<br>
<br>
Richard<br>
<br>
<br>
</blockquote></div><br></div>