Changeset 5e4a124


Ignore:
Timestamp:
03/29/2020 01:05:48 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
a131250
Parents:
20e3fcd
Message:

Remove /tools and /cross-tools when cleaning

If we stop a build before the "do-housekeeping" target is executed, there
may be symlinks of the type /tools->/mnt/lfs/tools. If we want to restart,
for example after fixing something else, and we run the "creatingtoolsdir"
target (or similar one in CLFS) again, it will fail. It's better to clean
those symlinks when cleaning the build directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r20e3fcd r5e4a124  
    9494      sudo rm -rf `find $BUILDDIR/sources -maxdepth 1 -mindepth 1 -type d`
    9595      echo "done"
     96      echo -n "Removing dangling symlinks in / ..."
     97      sudo rm -f /tools /cross-tools
     98      echo "done"
    9699    fi
    97100  fi
Note: See TracChangeset for help on using the changeset viewer.