From 3969fcc72e747152636df3264ddda06d9800f61f Mon Sep 17 00:00:00 2001 From: Peter Wang Date: Mon, 3 Feb 2020 21:03:41 +1100 Subject: [PATCH] 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. --- Kernel/build-root-filesystem.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh index e799a68a70..07c5ef13bd 100755 --- a/Kernel/build-root-filesystem.sh +++ b/Kernel/build-root-filesystem.sh @@ -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