From 1ba9ae3d217c2285909232d635caeaf0e16ecd54 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Fri, 9 Jun 2023 15:25:55 +1000 Subject: [PATCH] darwin-installer: fix `/run` not getting created --- pkgs/darwin-installer/installer.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/darwin-installer/installer.nix b/pkgs/darwin-installer/installer.nix index 1c58976d..485441bc 100644 --- a/pkgs/darwin-installer/installer.nix +++ b/pkgs/darwin-installer/installer.nix @@ -40,8 +40,8 @@ with lib; if ! grep -q '^run\b' /etc/synthetic.conf 2>/dev/null; then echo "setting up /run via /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 &>/dev/null || true - /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t &>/dev/null || true + sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B &>/dev/null || true + sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t &>/dev/null || true if ! test -L /run; then echo "warning: apfs.util failed to symlink /run" fi