summaryrefslogtreecommitdiff
path: root/packages/redhat
diff options
context:
space:
mode:
authorharlowja <harlowja@virtualbox.rhel>2012-06-26 07:48:12 -0700
committerharlowja <harlowja@virtualbox.rhel>2012-06-26 07:48:12 -0700
commit12d6cdce560be0b4788ae198f75d783a12b893c2 (patch)
tree8dbe1d492d8426d68726155a253073cdd7713c0f /packages/redhat
parenteb74655ae9826dcde235f1849b50e7d5a2b02223 (diff)
downloadvyos-cloud-init-12d6cdce560be0b4788ae198f75d783a12b893c2.tar.gz
vyos-cloud-init-12d6cdce560be0b4788ae198f75d783a12b893c2.zip
Add in the ability to choose which type of boot type the rpm should have
and adjust the specfile that is generated to remove the unwanted config files for the types which were not selected.
Diffstat (limited to 'packages/redhat')
-rw-r--r--packages/redhat/cloud-init.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/redhat/cloud-init.spec b/packages/redhat/cloud-init.spec
index f0c874ee..ddb6617d 100644
--- a/packages/redhat/cloud-init.spec
+++ b/packages/redhat/cloud-init.spec
@@ -37,11 +37,15 @@ ssh keys and to let the user run various scripts.
%build
%{__python} setup.py build
-
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+# Remove anything after it was installed??
+{{for r in post_remove}}
+rm -rfv $RPM_BUILD_ROOT/{{r}}
+{{endfor}}
+
%clean
rm -rf $RPM_BUILD_ROOT