Support building within git repository

The lib directory for python modules conflicted with the symlinks for a
merged usr so this moves the directory out of the way
This commit is contained in:
MaxHearnden 2024-09-10 15:42:11 +01:00
parent f3828e44db
commit 4e2434b837

View file

@ -6,5 +6,9 @@
# Add the rest of the FHS that we will use and is not created pre-boot
ln -s bin /usr/sbin
for d in bin lib sbin; do
if [ -d "/${d}" ] && ! [ -L "/${d}" ]; then
# Move the non symlink directory out of the way
mv "/${d}" "/${d}-saved"
fi
ln -s "usr/${d}" "/${d}" || true # these might exist if rerunning
done