Changeset 85506da for CLFS


Ignore:
Timestamp:
03/05/2017 08:38:09 AM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
3d24e5b
Parents:
df97e68
Message:

Merge new_features branch at r3901; Fixes:
when the user fstab and/or kernel config are the same as the ones in
$BUILDDIR/sources: avoid to cp on itself

  • set SRC_ARCHIVE=/dev/null in BLFS tools download script if SRC_ARCHIVE is

empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    rdf97e68 r85506da  
    379379      *how-to-view*) continue  ;;
    380380      *whatnext*) continue     ;;
    381       *fstab)   [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;;
     381      *fstab)   [[ ! -z ${FSTAB} ]] &&
     382                [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] ||
     383                cp ${FSTAB} $BUILDDIR/sources/fstab ;;
    382384      *kernel)  # if there is no kernel config file do not build the kernel
    383                 [[ -z $CONFIG ]] && continue
     385                [[ -z $BOOT_CONFIG ]] && continue
    384386                  # Copy the config file to /sources with a standardized name
     387                [[ ${BOOT_CONFIG} == $BUILDDIR/sources/bootkernel-config ]] ||
    385388                cp $BOOT_CONFIG $BUILDDIR/sources/bootkernel-config
    386389          ;;
     
    735738      *console*) continue ;; # Use the files that came with the bootscripts
    736739# fstab is now here (for 3.x.y)
    737       *fstab)  [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;;
     740      *fstab)  [[ ! -z ${FSTAB} ]] &&
     741               [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] ||
     742               cp ${FSTAB} $BUILDDIR/sources/fstab ;;
    738743      *)  ;;
    739744    esac
     
    908913    case $this_script in
    909914      *grub | *aboot | *colo | *silo | *arcload | *lilo | *reboot* )  continue ;;
    910       *fstab)  [[ ! -z ${FSTAB} ]] && cp ${FSTAB} $BUILDDIR/sources/fstab ;;
     915      *fstab)  [[ ! -z ${FSTAB} ]] &&
     916               [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] ||
     917               cp ${FSTAB} $BUILDDIR/sources/fstab ;;
    911918      *kernel) # if there is no kernel config file do not build the kernel
    912919               [[ -z $CONFIG ]] && continue
    913920                 # Copy the config file to /sources with a standardized name
     921               [[ $CONFIG == $BUILDDIR/sources/kernel-config ]] ||
    914922               cp $CONFIG $BUILDDIR/sources/kernel-config
    915923        ;;
Note: See TracChangeset for help on using the changeset viewer.