mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
Meta: Fix build-root-filesystem.sh on macOS
This commit is contained in:
parent
03a27bc693
commit
f0fdbb1d83
1 changed files with 10 additions and 2 deletions
|
@ -10,6 +10,14 @@ utmp_gid=5
|
|||
window_uid=13
|
||||
window_gid=13
|
||||
|
||||
CP="cp"
|
||||
|
||||
# cp on macOS does not support the -d option.
|
||||
# gcp comes with coreutils, which is already a dependency.
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
CP=gcp
|
||||
fi
|
||||
|
||||
die() {
|
||||
echo "die: $*"
|
||||
exit 1
|
||||
|
@ -25,8 +33,8 @@ fi
|
|||
umask 0022
|
||||
|
||||
printf "installing base system... "
|
||||
cp -PdR "$SERENITY_ROOT"/Base/* mnt/
|
||||
cp -PdR Root/* mnt/
|
||||
$CP -PdR "$SERENITY_ROOT"/Base/* mnt/
|
||||
$CP -PdR 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue