This commit is contained in:
MaxHearnden 2025-01-11 02:58:05 +00:00 committed by GitHub
commit d3e4fb4dbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 111 additions and 23 deletions

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

View file

@ -6,4 +6,4 @@
#
mkdir -p /external/repo
tar -cf - --exclude='/external/repo/*' --exclude='/external/repo-preseeded/*' --exclude='/external/distfiles/*' --exclude='/dev/*' --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*' / | bzip2 --best > /external/repo/base.tar.bz2
tar -cf - --exclude='/external/repo/*' --exclude='/external/repo-preseeded/*' --exclude='/external/distfiles/*' --exclude='/distfiles/*' --exclude='/dev/*' --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*' / | bzip2 --best > /external/repo/base.tar.bz2