Changeset 8381f6e for LFS


Ignore:
Timestamp:
08/06/2006 09:53:10 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
ef87eed
Parents:
b33a57b
Message:

Using the full path for chroot commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    rb33a57b r8381f6e  
    379379
    380380  # Add chroot commands
     381  CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`"
    381382  i=1
    382383  for file in chapter06/*chroot* ; do
    383     chroot=`cat $file | sed -e '/#!\/bin\/sh/d' -e 's@ \\\@ @g' | tr -d '\n' | sed \
    384       -e 's/  */ /g' -e 's|\\$|&&|g' -e 's|exit||g' -e 's|$| -c|' \
    385       -e 's|"$$LFS"|$(MOUNT_PT)|' -e 's|set -e||'`
     384    chroot=`cat $file | \
     385            sed -e "s@chroot@$CHROOT_LOC@" \
     386                -e '/#!\/bin\/sh/d' \
     387                -e 's@ \\\@ @g' | \
     388            tr -d '\n' | \
     389            sed -e 's/  */ /g' \
     390                -e 's|\\$|&&|g' \
     391                -e 's|exit||g' \
     392                -e 's|$| -c|' \
     393                -e 's|"$$LFS"|$(MOUNT_PT)|' \
     394                -e 's|set -e||'`
    386395    echo -e "CHROOT$i= $chroot\n" >> $MKFILE
    387396    i=`expr $i + 1`
Note: See TracChangeset for help on using the changeset viewer.