From 961661ea1d9816b9ac99c15e418156e504e33cab Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 16 Sep 2020 15:34:06 +0430 Subject: [PATCH] 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. --- Meta/build-root-filesystem.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index 47517a5c3d..ac637ccf92 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -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.