1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

darwin: Mount hfs+ case-sensitive

sops-nix assumes this is the case since it's the default on linux
This commit is contained in:
Janne Heß 2024-05-22 19:45:42 +02:00 committed by mergify[bot]
parent 0cd7cac744
commit b549832718

View file

@ -77,7 +77,7 @@ func MountSecretFs(mountpoint string, keysGID int, _useTmpfs bool, userMode bool
log.Printf("hdiutil attach ret %v. out: %s", err, diskpath) log.Printf("hdiutil attach ret %v. out: %s", err, diskpath)
// format as hfs // 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) 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. // "posix" mount takes `struct hfs_mount_args` which we dont have bindings for at hand.