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.
This commit is contained in:
Nico Weber 2020-06-04 18:39:53 -04:00 committed by Andreas Kling
parent 309a91847f
commit 7675812efd
Notes: sideshowbarker 2024-07-19 05:49:33 +09:00

View file

@ -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