From b549832718b8946e875c016a4785d204fcfc2e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Wed, 22 May 2024 19:45:42 +0200 Subject: [PATCH] darwin: Mount hfs+ case-sensitive sops-nix assumes this is the case since it's the default on linux --- pkgs/sops-install-secrets/darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/sops-install-secrets/darwin.go b/pkgs/sops-install-secrets/darwin.go index 5070633..b56064c 100644 --- a/pkgs/sops-install-secrets/darwin.go +++ b/pkgs/sops-install-secrets/darwin.go @@ -77,7 +77,7 @@ func MountSecretFs(mountpoint string, keysGID int, _useTmpfs bool, userMode bool log.Printf("hdiutil attach ret %v. out: %s", err, diskpath) // format as hfs - out, err = exec.Command("newfs_hfs", diskpath).Output() + out, err = exec.Command("newfs_hfs", "-s", diskpath).Output() log.Printf("newfs_hfs ret %v. out: %s", err, out) // "posix" mount takes `struct hfs_mount_args` which we dont have bindings for at hand.