Changeset 57a5e9a


Ignore:
Timestamp:
05/12/2024 07:59:27 PM (4 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Parents:
d3df258
Message:

Remove --from lfs from chown for now

We've added --from lfs for chown commands in the beginning of chap 7 to
avoid breaking host distro completely in case the user has not set $LFS
correctly. But jhalfs deletes the lfs user before running the
changingowner script, thus "chown --from lfs" fails because "lfs" does
not exist.

For now just remove "--from lfs" from the chown commands. Technically
we should remove the lfs user after the chown commands (because having
files owned by unnamed UID is bad).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    rd3df258 r57a5e9a  
    574574        <xsl:text>&#xA;</xsl:text>
    575575      </xsl:when><!-- temp chapters install -->
     576      <!-- In jhalfs chaningowner is executed AFTER userdel lfs
     577           so chown \-\- from lfs errors out.  -->
     578      <xsl:when test="contains(string(),'--from lfs')">
     579        <xsl:copy-of select="substring-before(string(), '--from lfs')"/>
     580        <xsl:choose>
     581          <xsl:when test="contains(substring-after(string(),'--from lfs'),
     582                                   '--from lfs')">
     583            <xsl:copy-of select="substring-before(
     584                                   substring-after(string(),'--from lfs'),
     585                                   '--from lfs')"/>
     586            <xsl:copy-of select="substring-after(
     587                                   substring-after(string(),'--from lfs'),
     588                                   '--from lfs')"/>
     589          </xsl:when>
     590          <xsl:otherwise>
     591            <xsl:copy-of select="string()"/>
     592          </xsl:otherwise>
     593        </xsl:choose>
     594        <xsl:text>&#xA;</xsl:text>
     595      </xsl:when>
    576596      <!-- The rest of commands -->
    577597      <xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.