<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6439</bug_id>
          
          <creation_ts>2014-06-12 18:10:38 +0000</creation_ts>
          <short_desc>package gzip tries to use hard links between /bin and /usr/bin</short_desc>
          <delta_ts>2017-08-03 13:34:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Gortmaker">paulg</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43897</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2014-06-12 18:10:38 +0000</bug_when>
    <thetext>A common deployment is to have the root dir (i.e. / which contains /lib /bin /etc and so on) on a separate partition than /usr  (and possibly /usr being shared over NFS or similar, or on a separate partition)

However when I tried to deploy such a yocto rootfs, with / on sda1 and /usr on sdb1, I got the following error:

# tar --numeric-owner -xpf ~/yocto-builder-intel-corei7-64.tar.bz2
tar: ./bin/gunzip.gzip: Cannot hard link to `./usr/bin/uncompress&apos;: Invalid cross-device link
tar: Exiting with failure status due to previous errors
#

Looking in the tarball, I see the following:

hrwxr-xr-x root/root            0 2014-06-11 14:52 ./bin/gunzip.gzip link to ./usr/bin/uncompress
lrwxrwxrwx root/root            0 2014-06-12 10:58 ./bin/zcat -&gt; /bin/zcat.gzip
lrwxrwxrwx root/root            0 2014-06-12 10:58 ./bin/gunzip -&gt; /bin/gunzip.gzip
lrwxrwxrwx root/root            0 2014-06-12 10:58 ./bin/gzip -&gt; /bin/gzip.gzip

Note that there are three perfectly normal symlinks, and one offending hardlink which crosses the /bin vs. /usr/bin boundary.  If it was also a symlink, this would not be a problem.

Workaround is to manually create the softlink after seeing the deployment error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44099</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-19 14:36:44 +0000</bug_when>
    <thetext>I&apos;ve previously asked that rather than fixing these issues piecemeal, we come up with a comprehensive plan for the / and /usr split. WindRiver are the people we keep hearing request for this support from.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75607</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2017-08-03 13:34:15 +0000</bug_when>
    <thetext>We do not have anyone that requires this feature (separate root and usr). Most linux distros are going this way so it seems pointless to resist the trend. There a good summary of the Debian rational and starting point to read more here:
   https://lwn.net/Articles/670071/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>