mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +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:
parent
e2110b633e
commit
3969fcc72e
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ if [ "$(id -u)" != 0 ]; then
|
|||
die "this script needs to run as root"
|
||||
fi
|
||||
|
||||
umask 0022
|
||||
|
||||
printf "creating initial filesystem structure... "
|
||||
for dir in bin etc proc mnt tmp; do
|
||||
mkdir -p mnt/$dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue