Changeset 8381f6e


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.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    rb33a57b r8381f6e  
    10231023  # Add chroot commands
    10241024  if [ "$METHOD" = "chroot" ] ; then
    1025     chroot=`cat chroot/*chroot* | sed -e '/#!\/tools\/bin\/bash/d' \
    1026                             -e '/^export/d' \
    1027                             -e '/^logout/d' \
    1028                             -e 's@ \\\@ @g' | tr -d '\n' |  sed -e 's/  */ /g' \
    1029                                                                 -e 's|\\$|&&|g' \
    1030                                                                 -e 's|exit||g' \
    1031                                                                 -e 's|$| -c|' \
    1032                                                                 -e 's|"$$CLFS"|$(MOUNT_PT)|'\
    1033                                                                 -e 's|set -e||'`
     1025    CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`"
     1026    chroot=`cat chroot/*chroot* | \
     1027            sed  -e "s@chroot@$CHROOT_LOC@" \
     1028                 -e '/#!\/tools\/bin\/bash/d' \
     1029                 -e '/^export/d' \
     1030                 -e '/^logout/d' \
     1031                 -e 's@ \\\@ @g' | \
     1032            tr -d '\n' |  \
     1033            sed -e 's/  */ /g' \
     1034                -e 's|\\$|&&|g' \
     1035                -e 's|exit||g' \
     1036                -e 's|$| -c|' \
     1037                -e 's|"$$CLFS"|$(MOUNT_PT)|'\
     1038                -e 's|set -e||'`
    10341039    echo -e "CHROOT1= $chroot\n" >> $MKFILE
    10351040  fi
  • 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`
  • 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.