diff options
-rw-r--r-- | strata/openstack-services.morph | 1 | ||||
-rw-r--r-- | strata/openstack-services/rtslib-fb.morph | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/strata/openstack-services.morph b/strata/openstack-services.morph index 2b17c85b..90d5681c 100644 --- a/strata/openstack-services.morph +++ b/strata/openstack-services.morph @@ -341,6 +341,7 @@ chunks: repo: upstream:python-packages/rtslib-fb ref: a020fbadfe530bc0773b73501c2cee420c435f87 unpetrify-ref: v2.1.fb50 + morph: strata/openstack-services/rtslib-fb.morph build-depends: [] - name: netifaces repo: upstream:python-packages/netifaces diff --git a/strata/openstack-services/rtslib-fb.morph b/strata/openstack-services/rtslib-fb.morph new file mode 100644 index 00000000..6e21d2fc --- /dev/null +++ b/strata/openstack-services/rtslib-fb.morph @@ -0,0 +1,20 @@ +name: rtslib-fb +kind: chunk +post-install-commands: +- | + cat <<EOF > "$DESTDIR$PREFIX"/lib/systemd/system/target.service + [Unit] + Description=Restore LIO kernel target configuration + Requires=sys-kernel-config.mount + After=sys-kernel-config.mount network.target local-fs.target + + [Service] + Type=oneshot + RemainAfterExit=yes + ExecStart=/usr/bin/targetctl restore + ExecStop=/usr/bin/targetctl clear + SyslogIdentifier=target + + [Install] + WantedBy=multi-user.target + EOF |