Changeset 8381f6e for HLFS


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
  • HLFS/master.sh

    rb33a57b r8381f6e  
    496496
    497497  # Add chroot commands
     498  CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`"
    498499  i=1
    499500  for file in chapter06/*chroot* ; do
    500     chroot=`cat $file | sed -e '/#!\/bin\/sh/d' \
    501           -e '/^export/d' \
    502           -e '/^logout/d' \
    503           -e 's@ \\\@ @g' | tr -d '\n' |  sed -e 's/  */ /g' \
    504                                               -e 's|\\$|&&|g' \
    505                                               -e 's|exit||g' \
    506                                               -e 's|$| -c|' \
    507                                               -e 's|"$$HLFS"|$(MOUNT_PT)|'\
    508                                               -e 's|set -e||'`
     501    chroot=`cat $file | \
     502            sed -e "s@chroot@$CHROOT_LOC@" \
     503                -e '/#!\/bin\/sh/d' \
     504                -e '/^export/d' \
     505                -e '/^logout/d' \
     506                -e 's@ \\\@ @g' | \
     507            tr -d '\n' |  \
     508            sed -e 's/  */ /g' \
     509                -e 's|\\$|&&|g' \
     510                -e 's|exit||g' \
     511                -e 's|$| -c|' \
     512                -e 's|"$$HLFS"|$(MOUNT_PT)|'\
     513                -e 's|set -e||'`
    509514    echo -e "CHROOT$i= $chroot\n" >> $MKFILE
    510515    i=`expr $i + 1`
Note: See TracChangeset for help on using the changeset viewer.