From 7675812efd404cfb8622cc3a365cb63ed274518e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 4 Jun 2020 18:39:53 -0400 Subject: [PATCH] build-root-filesystem: Explicitly add +rX for group and others to copied files. This lets Serenity boot even when the repository is cloned with a umask of 027. --- Meta/build-root-filesystem.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Meta/build-root-filesystem.sh b/Meta/build-root-filesystem.sh index 78357a9b6b..97adba4df4 100755 --- a/Meta/build-root-filesystem.sh +++ b/Meta/build-root-filesystem.sh @@ -26,6 +26,10 @@ umask 0022 printf "installing base system... " cp -R "$SERENITY_ROOT"/Base/* mnt/ cp -R 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. +chmod -R g+rX,o+rX "$SERENITY_ROOT"/Base/* mnt/ chmod 400 mnt/res/kernel.map chmod 660 mnt/etc/WindowServer/WindowServer.ini