Go to file
Marek Marczykowski-Górecki 6cbac4b4e0
Rename TIMESTAMP variable to TEMPLATE_TIMESTAMP
Make it explicit that it's about template. Allow setting it from the
outside, to make predictable template version.

QubesOS/qubes-issues#3935
2018-06-28 13:58:54 +02:00
appmenus_generic fedora: Remove "Software Update" appmenu for template (#871) 2014-07-02 19:58:31 +02:00
prepared_images Support different versions of the same distribution 2013-02-16 21:21:05 +01:00
qubeized_images gitignore 2015-03-31 23:00:40 +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
tests Reworked the way template flavor files are found to allow flavors 2015-04-13 14:48:27 -04:00
.gitignore gitignore 2015-03-19 22:59:57 +01:00
appvm.buildlog appvm version 1.1.3 2010-06-30 13:03:23 +02:00
build_template_rpm Remove raw root.img after packaging it into rpm - if DISCARD_PREPARED_IMAGE is set 2018-05-24 04:03:47 +02:00
builder_fix_filenames Simplify template name processing 2015-01-30 04:10:43 +01:00
builder_setup Add support for plugins, move all distribution-specific code there 2015-03-10 23:57:13 +01:00
cleanup_image Use full path for tools normally in /sbin 2018-03-10 02:03:59 +01:00
create_template_list.sh create_template_list.sh enhancements 2015-10-12 09:41:35 +00:00
functions-name.sh fix functions-name.sh 2018-06-04 02:18:34 +02:00
functions.sh Rename function chroot to chroot_cmd 2016-04-20 01:59:34 +02:00
Makefile Rename TIMESTAMP variable to TEMPLATE_TIMESTAMP 2018-06-28 13:58:54 +02:00
Makefile.builder Pretend the template rpm is build the standard way 2018-06-04 02:19:32 +02:00
mount_root.sh Fix a minor losetup usage bug 2016-04-10 00:00:00 -04:00
prepare_image Use full path to mkfs.ext4 2018-06-13 20:53:53 +02:00
qubeize_image Use full path for tools normally in /sbin 2018-03-10 02:03:59 +01:00
README Use a script for filling the rpms_to_install symlinks automatically 2011-07-02 14:38:46 +02:00
templates.spec Pretend the template rpm is build the standard way 2018-06-04 02:19:32 +02:00
umount_kill.sh Do not use full path to mountpoint program 2017-07-11 23:56:30 +02:00
version version 4.0.0 2017-10-19 16:45:24 +02: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.