open-iscsi: install systemd files (#97793)

This commit is contained in:
ajs124 2020-11-04 09:30:03 +01:00 committed by GitHub
parent 9957d406a2
commit c30745e053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,16 @@ stdenv.mkDerivation rec {
sed -i 's|/usr|/|' Makefile
'';
installFlags = [
"install"
"install_systemd"
];
postInstall = ''
cp usr/iscsistart $out/sbin/
for f in $out/lib/systemd/system/*; do
substituteInPlace $f --replace /sbin $out/bin
done
$out/sbin/iscsistart -v
'';