1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00

build-root-filesystem.sh: Set umask to 0022

On my system (Void Linux) the root user has a default umask of 0077,
causing files and directories in the disk image to have zero group and
world permissions.
This commit is contained in:
Peter Wang 2020-02-03 21:03:41 +11:00 committed by Andreas Kling
parent e2110b633e
commit 3969fcc72e

View file

@ -16,6 +16,8 @@ if [ "$(id -u)" != 0 ]; then
die "this script needs to run as root" die "this script needs to run as root"
fi fi
umask 0022
printf "creating initial filesystem structure... " printf "creating initial filesystem structure... "
for dir in bin etc proc mnt tmp; do for dir in bin etc proc mnt tmp; do
mkdir -p mnt/$dir mkdir -p mnt/$dir