Changeset 1330ebc for LFS


Ignore:
Timestamp:
02/17/2007 02:08:46 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
c0b307c
Parents:
b7ea8ff
Message:

Fixed chroot environment to be more closed to the one expected by the books.
Need be full tested.

Location:
LFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    rb7ea8ff r1330ebc  
    8080        <!-- Creating dirs and files -->
    8181      <exsl:document href="{$dirname}/{$order}-{$filename}" method="text">
    82         <xsl:text>#!/bin/bash&#xA;set +h&#xA;</xsl:text>
     82        <xsl:choose>
     83          <xsl:when test="@id='ch-system-creatingdirs' or
     84                    @id='ch-system-createfiles'">
     85            <xsl:text>#!/tools/bin/bash&#xA;set +h&#xA;</xsl:text>
     86          </xsl:when>
     87          <xsl:otherwise>
     88            <xsl:text>#!/bin/bash&#xA;set +h&#xA;</xsl:text>
     89          </xsl:otherwise>
     90        </xsl:choose>
    8391        <xsl:if test="not(@id='ch-tools-stripping') and
    8492                      not(@id='ch-system-strippingagain')">
  • LFS/master.sh

    rb7ea8ff r1330ebc  
    436436mk_SUDO: mk_LUSER
    437437        @sudo make SUDO
    438         touch \$@
    439 #
    440 # The convoluted piece of code below is necessary to provide 'make' with a valid shell in the
    441 # chroot environment. (Unless someone knows a different way)
    442 # Manually create the /bin directory and provide link to the /tools dir.
    443 # Also change the original symlink creation to include (f)orce to prevent failure due to
    444 #  pre-existing links.
    445 #
     438        @touch \$@
     439
    446440mk_CHROOT: mk_SUDO
    447         @if [ ! -e \$(MOUNT_PT)/bin ]; then \\
    448           mkdir \$(MOUNT_PT)/bin; \\
    449           cd \$(MOUNT_PT)/bin && \\
    450           ln -sf /tools/bin/bash bash; ln -sf bash sh; \\
    451           sudo chown -R 0:0 \$(MOUNT_PT)/bin; \\
    452         fi;
    453         @sudo sed -e 's|^ln -sv |ln -svf |' -i \$(CMDSDIR)/chapter06/*-createfiles
    454441        @\$(call echo_CHROOT_request)
    455442        @( sudo \$(CHROOT1) "cd \$(SCRIPT_ROOT) && make CHROOT")
Note: See TracChangeset for help on using the changeset viewer.