Add -x to hugepages-setup.sh
This commit is contained in:
parent
be924e4600
commit
1ae7313fad
|
@ -43,14 +43,17 @@ stdenv.mkDerivation rec {
|
||||||
substituteInPlace "$out/lib/systemd/system/tenstorrent-hugepages.service" \
|
substituteInPlace "$out/lib/systemd/system/tenstorrent-hugepages.service" \
|
||||||
--replace-fail "/opt/tenstorrent/bin/hugepages-setup.sh" "$out/libexec/hugepages-setup.sh"
|
--replace-fail "/opt/tenstorrent/bin/hugepages-setup.sh" "$out/libexec/hugepages-setup.sh"
|
||||||
|
|
||||||
wrapProgram "$out/libexec/hugepages-setup.sh" \
|
mv "$out/libexec/hugepages-setup.sh" "$out/libexec/.hugepages-setup.sh-wrapped"
|
||||||
|
makeWrapper ${bash}/bin/bash "$out/libexec/hugepages-setup.sh" \
|
||||||
--prefix PATH : ${
|
--prefix PATH : ${
|
||||||
lib.makeBinPath [
|
lib.makeBinPath [
|
||||||
coreutils
|
coreutils
|
||||||
pciutils
|
pciutils
|
||||||
gawk
|
gawk
|
||||||
]
|
]
|
||||||
}
|
} \
|
||||||
|
--add-flags "-x $out/libexec/.hugepages-setup.sh-wrapped"
|
||||||
|
# add -x easier debugging
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue