diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 16:02:36 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-04-14 16:13:23 +0000 |
commit | aa85df216ef454a47f2d6d027fcec2400d1083e3 (patch) | |
tree | eb238277d6e9f1c7be5d99043d507d9c0e5961ff /chunks/cloud-init.morph | |
parent | 519294adf840fd3981a9aafc7744d3fe66301c68 (diff) | |
download | definitions-aa85df216ef454a47f2d6d027fcec2400d1083e3.tar.gz |
Add chunk morphologies to the definitions repository
Diffstat (limited to 'chunks/cloud-init.morph')
-rw-r--r-- | chunks/cloud-init.morph | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chunks/cloud-init.morph b/chunks/cloud-init.morph new file mode 100644 index 00000000..3ea5e554 --- /dev/null +++ b/chunks/cloud-init.morph @@ -0,0 +1,19 @@ +name: cloud-init +kind: chunk +repo: upstream:cloud-init +ref: eeb4923b3528ebf4d93d8297b2d489738c3ea7c3 +unpetrify-ref: baserock/morph +build-system: python-distutils +post-install-commands: +- mkdir -p "$DESTDIR"/lib/systemd/system +- cp systemd/* "$DESTDIR"/lib/systemd/system/ +- mkdir -p "$DESTDIR"/etc/systemd/system/ +- | + for S in $(cd systemd; ls *.service); do + ln -s /lib/systemd/system/$S "$DESTDIR"/etc/systemd/system/$S; + done +- mkdir -p "$DESTDIR"/lib/systemd/system/multi-user.target.wants/ +- | + for S in $(cd systemd; ls *.service); do + ln -s /lib/systemd/system/$S "$DESTDIR"/lib/systemd/system/multi-user.target.wants/$S; + done |