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:
parent
f8a04c7f6d
commit
8834df4317
1 changed files with 3 additions and 2 deletions
|
@ -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..."
|
||||
|
|
Loading…
Add table
Reference in a new issue