mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/filesystems/zfs: Escape dataset names
Although unlikely, ZFS happily accepts names like 'zroot/foo -r'. Escape names and separate command line options from arguments to avoid any kind of misinterpretation.
This commit is contained in:
parent
83beeb19ac
commit
2a341bd2f4
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ in
|
|||
zfs load-key -a
|
||||
''
|
||||
else concatMapStrings (fs: ''
|
||||
zfs load-key ${fs}
|
||||
zfs load-key -- ${escapeShellArg fs}
|
||||
'') cfgZfs.requestEncryptionCredentials}
|
||||
'') rootPools));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue