1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00

installer: silence apfs.util output

Passing incorrect flags prints help output to stdout so silence
everything.

Fixes #264
This commit is contained in:
Daiderd Jordan 2020-12-22 10:10:08 +01:00 committed by Daiderd Jordan
parent f8a04c7f6d
commit 8834df4317
No known key found for this signature in database
GPG key ID: 373D8D8DF3FDA129

View file

@ -45,8 +45,9 @@ with lib;
if ! grep -q '^run\b' /etc/synthetic.conf 2>/dev/null; then
echo "setting up /etc/synthetic.conf..."
echo -e "run\tprivate/var/run" | sudo tee -a /etc/synthetic.conf >/dev/null
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B 2>/dev/null || true
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t 2>/dev/null || true
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B &>/dev/null \
|| /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t &>/dev/null \
|| echo "warning: failed to execute apfs.util"
fi
if ! test -L /run; then
echo "setting up /run..."