Skip to content

Commit

Permalink
darwin: Mount hfs+ case-sensitive
Browse files Browse the repository at this point in the history
sops-nix assumes this is the case since it's the default on linux
  • Loading branch information
dasJ committed May 22, 2024
1 parent 7cb511b commit 0e47e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/sops-install-secrets/darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0e47e0a

Please sign in to comment.