Changeset 123105f for LFS/lfs.xsl


Ignore:
Timestamp:
03/29/2020 01:42:43 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
939731a
Parents:
1dce189
Message:

Do not rely on /tools for setting ROOT (again)

Using the chapter ancestor is not enough. It's better to use the sect1 id
and test that it starts with ch-tools: package-manager does not have this
ancestor. Also the virtual kernel filesystems are done before chroot,
so directly test this one.

This works for the current lfs book. We'll need something new if we
change the order of pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r1dce189 r123105f  
    11451145ROOT=</xsl:text>
    11461146    <xsl:choose>
    1147       <xsl:when test="ancestor::chapter/@id = 'chapter-temporary-tools'">
     1147      <xsl:when test="starts-with(./@id, 'ch-tools') or
     1148                      contains   (./@id, 'kernfs')">
    11481149        <xsl:text>$LFS/
    11491150</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.