diff options
author | harlowja <harlowja@virtualbox.rhel> | 2012-06-26 07:48:12 -0700 |
---|---|---|
committer | harlowja <harlowja@virtualbox.rhel> | 2012-06-26 07:48:12 -0700 |
commit | 12d6cdce560be0b4788ae198f75d783a12b893c2 (patch) | |
tree | 8dbe1d492d8426d68726155a253073cdd7713c0f /packages/redhat | |
parent | eb74655ae9826dcde235f1849b50e7d5a2b02223 (diff) | |
download | vyos-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.spec | 6 |
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 |