diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-03-19 18:11:49 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-09 14:04:14 +0000 |
commit | 9e96f4f7d2fc18dd965e831626a0fd39a292686e (patch) | |
tree | bd067eb6ad397180bab90663fb7989ab67173b19 /strata/openstack-services | |
parent | 255ad0c04ccd65add9e64c7df565b0ad165c6658 (diff) | |
download | definitions-9e96f4f7d2fc18dd965e831626a0fd39a292686e.tar.gz |
Update rstlib-fb and add target.service systemd unit service
This is required for the LIO kernel to restore the
target configuration
Diffstat (limited to 'strata/openstack-services')
-rw-r--r-- | strata/openstack-services/rtslib-fb.morph | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/strata/openstack-services/rtslib-fb.morph b/strata/openstack-services/rtslib-fb.morph new file mode 100644 index 00000000..26de3f9b --- /dev/null +++ b/strata/openstack-services/rtslib-fb.morph @@ -0,0 +1,27 @@ +name: rtslib-fb +kind: chunk +build-system: python-distutils +post-install-commands: +- mkdir -p "$DESTDIR$PREFIX"/lib/systemd/system + +# The following systemd unit is from the fedora package see +# http://pkgs.fedoraproject.org/cgit/python-rtslib.git/tree/target.service for +# more information + +- | + install -D -m 0644 /proc/self/fd/0 <<'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 |