mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-01-07 22:27:24 +08:00
sops-install-secrets: add mount options for darwin
This commit is contained in:
parent
fddd52460e
commit
0cd7cac744
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ func MountSecretFs(mountpoint string, keysGID int, _useTmpfs bool, userMode bool
|
|||
// See https://stackoverflow.com/a/49048846/4108673
|
||||
// err = unix.Mount("hfs", mountpoint, unix.MNT_NOEXEC|unix.MNT_NODEV, mount_args)
|
||||
// Instead we call:
|
||||
out, err = exec.Command("mount", "-t", "hfs", diskpath, mountpoint).Output()
|
||||
out, err = exec.Command("mount", "-t", "hfs", "-o", "nobrowse,nodev,nosuid,-m=0751", diskpath, mountpoint).Output()
|
||||
log.Printf("mount ret %v. out: %s", err, out)
|
||||
|
||||
// There is no documented way to check for memfs mountpoint. Thus we place a file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue