Changeset 8381f6e
- Timestamp:
- 08/06/2006 09:53:10 AM (18 years ago)
- Branches:
- experimental
- Children:
- ef87eed
- Parents:
- b33a57b
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CLFS/master.sh
rb33a57b r8381f6e 1023 1023 # Add chroot commands 1024 1024 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||'` 1034 1039 echo -e "CHROOT1= $chroot\n" >> $MKFILE 1035 1040 fi -
HLFS/master.sh
rb33a57b r8381f6e 496 496 497 497 # Add chroot commands 498 CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`" 498 499 i=1 499 500 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||'` 509 514 echo -e "CHROOT$i= $chroot\n" >> $MKFILE 510 515 i=`expr $i + 1` -
LFS/master.sh
rb33a57b r8381f6e 379 379 380 380 # Add chroot commands 381 CHROOT_LOC="`whereis -b chroot | cut -d " " -f2`" 381 382 i=1 382 383 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||'` 386 395 echo -e "CHROOT$i= $chroot\n" >> $MKFILE 387 396 i=`expr $i + 1`
Note:
See TracChangeset
for help on using the changeset viewer.