Author: pierre
Date: Sun Mar 29 06:05:48 2020
New Revision: 4137
Log:
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.
Modified:
jhalfs/trunk/common/common-functions
Modified: jhalfs/trunk/common/common-functions
==============================================================================
--- jhalfs/trunk/common/common-functions Sun Mar 29 05:58:06 2020
(r4136)
+++ jhalfs/trunk/common/common-functions Sun Mar 29 06:05:48 2020
(r4137)
@@ -93,6 +93,9 @@
echo -n "Cleaning remaining extracted sources in $BUILDDIR/sources ..."
sudo rm -rf `find $BUILDDIR/sources -maxdepth 1 -mindepth 1 -type d`
echo "done"
+ echo -n "Removing dangling symlinks in / ..."
+ sudo rm -f /tools /cross-tools
+ echo "done"
fi
fi
fi
--
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page