[Simple-cdd-devel] Small patch to include profile-specific files on the CD
Vagrant Cascadian
vagrant at freegeek.org
Sun Oct 4 20:56:25 UTC 2009
On Sun, Oct 04, 2009 at 06:09:21PM +0200, Oxan van Leeuwen wrote:
> I have written a small patch to bring the add_extras option to the
> profiles, instead of being a global option. It checks the
> profiles/profilename.extra file, and includes all files listed there in
> the simple-cdd directory on the created disk. This can be useful to add
> configuration files that you deploy in the post-installation to the
> diskimage.
thanks for the idea!
committed a slightly different patch to the bzr repository:
=== modified file 'build-simple-cdd'
--- build-simple-cdd 2009-09-14 07:09:26 +0000
+++ build-simple-cdd 2009-10-04 20:16:03 +0000
@@ -258,6 +258,10 @@
package_files="$package_files $(profile_files $p downloads)"
package_files="$package_files $(profile_files $p udebs)"
all_extras="$all_extras $(profile_files $p postinst)"
+ for f in $(profile_files $p extra) ; do
+ # include the extra file itself, as well as the contents it references
+ all_extras="$all_extras $f $(cat $f)"
+ done
exclude_files="$exclude_files $(profile_files $p excludes)"
done
live well,
vagrant
More information about the Simple-cdd-devel
mailing list