lxcfs: lxc.mount.hook: add coreutils to PATH

This commit is contained in:
Bruno Bigras 2024-07-14 23:33:07 -04:00
parent c2a12db1a4
commit 8923ec72b5

View File

@ -12,6 +12,7 @@
pkg-config,
python3,
util-linux,
coreutils,
}:
stdenv.mkDerivation rec {
@ -51,8 +52,8 @@ stdenv.mkDerivation rec {
'';
postInstall = ''
# `mount` hook requires access to the `mount` command from `util-linux`:
wrapProgram "$out/share/lxcfs/lxc.mount.hook" --prefix PATH : "${util-linux}/bin"
# `mount` hook requires access to the `mount` command from `util-linux` and `readlink` from `coreutils`:
wrapProgram "$out/share/lxcfs/lxc.mount.hook" --prefix PATH : ${lib.makeBinPath [ coreutils util-linux ]}
'';
postFixup = ''