diff options
author | Scott Moser <smoser@brickies.net> | 2017-09-15 15:06:17 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-10-06 17:19:45 -0400 |
commit | afbbd39abe6e376d1a0248ae05bc17068cc43e11 (patch) | |
tree | 8b92485e4793feb9fa9e5b7c64fbc7303e20a458 | |
parent | c70b23b9f5a0b30caaeba5147ba976437ccd2ad5 (diff) | |
download | vyos-cloud-init-afbbd39abe6e376d1a0248ae05bc17068cc43e11.tar.gz vyos-cloud-init-afbbd39abe6e376d1a0248ae05bc17068cc43e11.zip |
debian/rules, debian/apport-launcher.py: add an apport hook.
Add the apport launcher that takes advantage of the newly added
cloudinit.apport.
LP: #1607345
-rw-r--r-- | debian/apport-launcher.py | 6 | ||||
-rwxr-xr-x | debian/rules | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/debian/apport-launcher.py b/debian/apport-launcher.py new file mode 100644 index 00000000..30fea31b --- /dev/null +++ b/debian/apport-launcher.py @@ -0,0 +1,6 @@ +'''Wrapper for cloudinit apport interface''' + +from cloudinit.apport import add_info as cloudinit_add_info + +def add_info(report, ui): + return cloudinit_add_info(report, ui) diff --git a/debian/rules b/debian/rules index 48050449..72754aab 100755 --- a/debian/rules +++ b/debian/rules @@ -20,3 +20,4 @@ override_dh_auto_install: install -D -m 0644 ./tools/21-cloudinit.conf debian/cloud-init/etc/rsyslog.d/21-cloudinit.conf install -D ./tools/Z99-cloud-locale-test.sh debian/cloud-init/etc/profile.d/Z99-cloud-locale-test.sh install -D ./tools/Z99-cloudinit-warnings.sh debian/cloud-init/etc/profile.d/Z99-cloudinit-warnings.sh + install -m 0644 -D debian/apport-launcher.py debian/cloud-init/usr/share/apport/package-hooks/cloud-init.py |