From 4e2434b837d6c9042cf6682f42da4fe2def6e81f Mon Sep 17 00:00:00 2001 From: MaxHearnden Date: Tue, 10 Sep 2024 15:42:11 +0100 Subject: [PATCH] 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 --- steps/improve/merged_usr.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/steps/improve/merged_usr.sh b/steps/improve/merged_usr.sh index 14e79d87..33d30748 100755 --- a/steps/improve/merged_usr.sh +++ b/steps/improve/merged_usr.sh @@ -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