Build: Preserve hard/symbolic links when building root fs

This fixes the issue where there would not be enough space to copy
things when at least the git port and the gcc port are installed.
This commit is contained in:
AnotherTest 2020-09-16 15:34:06 +04:30 committed by Andreas Kling
parent e31f8b56e8
commit 961661ea1d
Notes: sideshowbarker 2024-07-19 02:23:22 +09:00

View file

@ -25,8 +25,8 @@ fi
umask 0022
printf "installing base system... "
cp -R "$SERENITY_ROOT"/Base/* mnt/
cp -R Root/* mnt/
cp -PdR "$SERENITY_ROOT"/Base/* mnt/
cp -PdR Root/* mnt/
# If umask was 027 or similar when the repo was cloned,
# file permissions in Base/ are too restrictive. Restore
# the permissions needed in the image.