Go to file
Marek Marczykowski-Górecki c9809c7d6e Minimize data contained in the template package
1. Remove appmenus - regenerate them at installation time (start the
   template for that)
2. Remove volatile.img - regenerate it at installation time

This way, the only real data carried in template rpm is root.img.
2015-03-08 23:55:36 +01:00
appmenus_fc17 appmenus: whitelists for fc17 2012-06-22 21:16:41 +02:00
appmenus_fc18 Fedora 18 initial support 2012-10-27 21:31:20 +02:00
appmenus_fc20 fedora: Remove "Software Update" appmenu for template (#871) 2014-07-02 19:58:31 +02:00
appmenus_fc20_minimal fedora: initial configuration for "minimal" template (#828) 2014-05-13 04:49:13 +02:00
appmenus_fc21 fedora: fc21: Added Fedora 21 template and related configurations 2015-02-14 12:45:00 -05:00
appmenus_fc21_minimal fedora: fc21: Added Fedora 21 template and related configurations 2015-02-14 12:45:00 -05:00
appmenus_generic fedora: Remove "Software Update" appmenu for template (#871) 2014-07-02 19:58:31 +02:00
appmenus_jessie debian: Completely refactored Debian and Whonix 2015-02-14 12:33:06 -05:00
appmenus_jessie_gnome Debian: Configured all wheezy/jessie+gnome whitelists 2014-11-03 02:39:08 -05:00
appmenus_trusty qubuntu: Added trusty, utopic and vivid templates 2015-02-14 12:33:54 -05:00
appmenus_trusty_desktop qubuntu: Added trusty, utopic and vivid templates 2015-02-14 12:33:54 -05:00
appmenus_utopic qubuntu: Added trusty, utopic and vivid templates 2015-02-14 12:33:54 -05:00
appmenus_utopic_desktop qubuntu: Added trusty, utopic and vivid templates 2015-02-14 12:33:54 -05:00
appmenus_vivid qubuntu: Added trusty, utopic and vivid templates 2015-02-14 12:33:54 -05:00
appmenus_vivid_desktop qubuntu: Added trusty, utopic and vivid templates 2015-02-14 12:33:54 -05:00
appmenus_wheezy debian: Completely refactored Debian and Whonix 2015-02-14 12:33:06 -05:00
appmenus_wheezy_gnome Debian: Configured all wheezy/jessie+gnome whitelists 2014-11-03 02:39:08 -05:00
appmenus_wheezy_whonix-gateway whonix: Updated appmenus and added a gnome appmenu definition 2015-02-14 12:35:35 -05:00
appmenus_wheezy_whonix-workstation whonix: Updated appmenus and added a gnome appmenu definition 2015-02-14 12:35:35 -05:00
appmenus_wheezy_whonix-workstation_gnome whonix: Updated appmenus and added a gnome appmenu definition 2015-02-14 12:35:35 -05:00
prepared_images Support different versions of the same distribution 2013-02-16 21:21:05 +01:00
qubeized_images Initial public commit. 2010-04-06 00:25:37 +02:00
rpm Initial public commit. 2010-04-06 00:25:37 +02:00
rpmbuild Remove "empty" directory, already ignored by gitignore 2013-12-08 20:32:36 +01:00
scripts_archlinux archlinux: fix /etc/os-release and add remote qubes repository (on olivier.medoc.free.fr) 2015-02-01 23:27:57 +01:00
scripts_debian Actually remove deb files from template 2015-02-23 21:49:40 +01:00
scripts_fedora fc21: Changed 3rd party software not to import package keys 2015-02-16 18:55:36 -05:00
scripts_qubuntu debian: qubuntu: Overwrite existing configuration files by default 2015-02-14 12:34:31 -05:00
tests New tests to work with updated functions.sh 2015-02-14 12:32:54 -05:00
yum_repo_qubes debian: use real apt repo for qubes packages installation 2014-07-26 04:35:11 +02:00
.gitignore fedora: fc21: Added Fedora 21 template and related configurations 2015-02-14 12:45:00 -05:00
appvm.buildlog appvm version 1.1.3 2010-06-30 13:03:23 +02:00
build_template_rpm Support different versions of the same distribution 2013-02-16 21:21:05 +01:00
builder_fix_filenames Simplify template name processing 2015-01-30 04:10:43 +01:00
builder_setup Added qubuntu evn vars indentifiers to builder_setup 2015-02-14 12:31:28 -05:00
clean-volatile.img.tar Do not duplicate clean-volatile.img.tar for each distribution 2015-01-30 19:16:22 +01:00
cleanup_image Debian Wheezy template addition and refactoring to allow Whonix TEMPLATE_FLAVOR 2014-10-14 12:02:12 -04:00
comps-qubes-template.xml fedora: reduce minimal template 2014-05-21 19:23:36 +02:00
create_template_list.sh AppVM was hard coded by mistake. Changed to pick up users AppVM name 2014-11-17 16:39:02 -05:00
functions-name.sh If template_flavor only contains a '+'; send back $DIST 2015-02-14 12:31:43 -05:00
functions.sh Provide chroot() wrapper also in quiet mode 2015-02-19 04:07:51 +01:00
Makefile export DISTRIBUTION and TEMPLATE_NAME 2015-02-14 12:31:13 -05:00
mount_root.sh Initial public commit. 2010-04-06 00:25:37 +02:00
prepare_image Reformatted script 2015-02-14 12:32:16 -05:00
qubeize_image Minimize data contained in the template package 2015-03-08 23:55:36 +01:00
README Use a script for filling the rpms_to_install symlinks automatically 2011-07-02 14:38:46 +02:00
templates.spec Minimize data contained in the template package 2015-03-08 23:55:36 +01:00
umount_kill.sh Improve mount detection and better able to umount problem mounts 2015-02-14 12:32:44 -05:00
version version 2.1.8 2014-09-14 00:41:46 +02:00
yum.conf qubeize_image: use yum repo for Qubes-specific rpms instead of symlinks 2012-11-14 16:12:18 +01:00

The Template Builder
======================

1) First, create a clean image of Fedora Linux install. You can use the fedoraize_image
script for this:

fedorize_image <image> <file-with-packets-lists>

NOTE: The fedorize_image script can be also used to update an image -- it
automatically assumes the update mode if the <image> already exists.

2) Update symlinks in rpms_to_install/ using the create_symlinks_in_rpms_to_install_dir.sh script. The script
reads the core, gui, and xen packages versions from version_{core,gui,xen} files and creates appropriate symlinks
in rpms_to_install/ dir.

Verify that all symlinks are correct.

3) Now, you can "qubeize" the image. This must be done as root. E.g.:

# ./qubeize_image <img> <template-name>

4) Finally, build the Template RPM (do it as normal user, not root), e.g.: 

$./build_rpm <name>

The resulting rpm is stored in rpm/noarch directory.