mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-24 18:48:29 +03:00
Give volume a name
This commit is contained in:
parent
8867c12d72
commit
019784cb7e
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ with lib; let
|
||||||
if isDarwin then ''
|
if isDarwin then ''
|
||||||
if ! diskutil info "${cfg.secretsMountPoint}" &> /dev/null; then
|
if ! diskutil info "${cfg.secretsMountPoint}" &> /dev/null; then
|
||||||
dev=$(hdiutil attach -nomount ram://1MiB)
|
dev=$(hdiutil attach -nomount ram://1MiB)
|
||||||
|
newfs_hfs -v agenix "$dev"
|
||||||
mount -t hfs -o nobrowse,nodev,nosuid,-m=0751 "$dev" "${cfg.secretsMountPoint}"
|
mount -t hfs -o nobrowse,nodev,nosuid,-m=0751 "$dev" "${cfg.secretsMountPoint}"
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue