Commit Graph

52 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
009df31f74 Include (empty) apps.tempicons directory (#896)
In the future we could create it (and populate) in firstboot, but for
now provide at least empty directory.
2014-09-09 22:04:45 +02:00
Victor Lopez
97730dcf62 Avoid 100MB reserved space in private ext4 partition
The ext4 reserved space is necessary for root partitions, but in the
private.img data partition, it is wasted space (accessible only to root
processes), which means losing 100 MB of the default 2GB.

From mkfs.ext4 man page:
"-m reserved-blocks-percentage Specify the percentage of the filesystem
blocks reserved for the super-user." ... "The default percentage is 5%."
2014-09-05 22:41:14 +02:00
Marek Marczykowski-Górecki
8ebdc8ad65 rpm: Prevent upgrades of template pkg
Templates are meant to upgrade using its own package manager.
Upgrade template package itself would destroy all th user
customizations.
2014-04-22 19:43:35 +02:00
Marek Marczykowski-Górecki
d03d58a594 spec: fix %post deps
Template %post uses both qubes-core-dom0-linux (for appmenus handling
scripts) and qubes-core-dom0 (for qvm-add-template and qvm-template-commit).
2014-04-08 04:59:15 +02:00
Marek Marczykowski-Górecki
6f493908c5 cleanup on template uninstall
Remove files created during template lifetime.
2013-12-13 04:18:25 +01:00
Marek Marczykowski
fc7c9c7038 rpm: set sgid for template directory
Make sure that contents belong to qubes group.
2013-05-20 01:36:45 +02:00
Marek Marczykowski
6867aa8ef0 rpm: force offline mode if installing inside of chroot 2013-05-18 05:59:04 +02:00
Marek Marczykowski
4c8f1755d9 Merge branch 'archlinux'
Conflicts:
	.gitignore
	Makefile
	build_template_rpm
	templates.spec
2013-04-28 06:08:18 +02:00
Marek Marczykowski
a9477ac200 spec: fix paths and requires according to new components layout 2013-03-25 16:20:49 +01:00
Marek Marczykowski
99e9e0351d makefile: Fix building many different template rpm packages at the same time
Store build_timestamp for each built template to not mix them up in
update-repo-installer.
2013-02-24 13:33:57 +01:00
Marek Marczykowski
add64aa2e4 Support different versions of the same distribution
Split $DIST to distribution name and version (builder_setup script) and search
for scripts first $DIST-specific, but then for given distribution.

Also move out some Fedora-specific things to scripts_fc17.
2013-02-16 21:21:05 +01:00
Marek Marczykowski
d244c5b7d1 spec: provide 'qubes-template' virtual package 2013-02-16 20:44:04 +01:00
Marek Marczykowski
dac766a085 spec: minor whitespace fix 2013-02-16 20:44:04 +01:00
Marek Marczykowski
54e6156444 spec: provide 'qubes-template' virtual package 2013-02-06 14:16:08 +01:00
Marek Marczykowski
563b8f68b9 spec: minor whitespace fix 2013-02-06 14:16:08 +01:00
Olivier Medoc
7e17847377 template_builder: made make scripts OS independent.
An important note is that each OS script need to setup itself its own chroot environment (like creating /proc...).
2013-02-06 02:53:30 +01:00
Marek Marczykowski
fe2f66dfc7 spec: ensure right install order
Execute %post after installation of tar and qubes-core-dom0
2013-01-23 01:29:54 +01:00
Joanna Rutkowska
fcf4b4b86f Fix automatic template versioning (#667) 2012-11-06 10:43:45 +01:00
Marek Marczykowski
7d55c9b24f remove dispvm files - now part of qubes-core-vm package 2012-07-12 14:32:12 +02:00
Marek Marczykowski
2b1d34b964 appmenus: include whitelist for NetVM (#538) 2012-05-01 02:09:35 +02:00
Marek Marczykowski
9ea5d3d0c6 spec: fix package removing 2012-01-06 13:25:14 +01:00
Marek Marczykowski
0b42c5d012 Create dummy volatile.img file
Some rpm versions doesn't understand %ghost macro
2011-09-26 21:08:28 +02:00
Marek Marczykowski
eb0fd31bf4 Merge branch 'master' of ssh://git.qubes-os.org/var/lib/qubes/git/joanna/template-builder
Conflicts:
	appmenus/whitelisted-appmenus.list
2011-07-11 20:43:10 +02:00
Marek Marczykowski
0e6508982d Include templates for all appmenus in package (#266)
Convert it to actual appmenus at rpm installation stage - respecting provided
whitelist.
2011-07-11 20:39:58 +02:00
Joanna Rutkowska
7c37e25aa1 Use a script for filling the rpms_to_install symlinks automatically
The actual version of core, gui, and xen packages to use are given in version_{core,gui,xen} files
2011-07-02 14:38:46 +02:00
Marek Marczykowski
6f88828cf4 Remove kernel from template - now distributed as separate package 2011-06-30 01:22:58 +02:00
Marek Marczykowski
7987c16828 Do not include xen config files in template package
There are autogenerated at VM start by Qubes core scripts.
2011-06-23 23:31:12 +02:00
Marek Marczykowski
952daea76c Appmenus: Include directory template for TemplateVM (#225) 2011-04-19 16:52:00 +02:00
Marek Marczykowski
8641e11c77 Include TemplateVM appmenus _template_ in package (#225)
Needed for new TemplateVM - after clone
2011-04-19 15:57:39 +02:00
Marek Marczykowski
dd0a59ba28 Merge branch 'master' of ssh://git.qubes-os.org/var/lib/qubes/git/joanna/template-builder
Conflicts:
	rpms_to_install_x64/qubes-core-appvm
	rpms_to_install_x64/qubes-core-commonvm
	rpms_to_install_x64/qubes-core-netvm
	rpms_to_install_x64/qubes-core-proxyvm
	templates.spec
	vm_conf_files/standalone-template.conf
2011-04-19 14:11:56 +02:00
Marek Marczykowski
ceecde6348 Add root-cow.img to rpm (as ghost)
To remove it on rpm -e
2011-04-05 15:28:18 +02:00
Marek Marczykowski
2015b4fddd Fail template package remove if there are VMs based on it (#154)
And remove DispVM based on it.
2011-04-05 15:20:10 +02:00
Joanna Rutkowska
dc657c9116 Keep select appmenus for template VM in appmenus/ dir 2011-03-30 17:27:56 +02:00
Marek Marczykowski
45f9611c93 Add standalone-template.conf to rpm 2011-03-24 13:04:43 +01:00
Marek Marczykowski
4a2ce19ee8 Require new core in dom0
For support of volatile.img handling
2011-03-24 13:04:43 +01:00
Marek Marczykowski
666ce95c26 Leave tar-ed volatile.img (#118) 2011-03-24 13:04:43 +01:00
Marek Marczykowski
7054456eb7 Create template with plain root.img without partitions (#118)
Additionaly provide clean-volatile.img
2011-03-24 13:04:43 +01:00
Marek Marczykowski
e55c22bc87 Fill all %TEMPLATENAME% tags (for CoW based templates) 2011-03-24 13:04:43 +01:00
Marek Marczykowski
3acbeb6d6f Add standalone-template.conf to rpm 2011-03-23 02:26:01 +01:00
Marek Marczykowski
6857612160 Require new core in dom0
For support of volatile.img handling
2011-03-22 21:08:01 -04:00
Marek Marczykowski
2f6d40fa4b Leave tar-ed volatile.img (#118) 2011-03-19 17:12:52 -04:00
Marek Marczykowski
c03967798f Create template with plain root.img without partitions (#118)
Additionaly provide clean-volatile.img
2011-03-18 22:30:23 -04:00
Marek Marczykowski
ad0e2aaf7e Fill all %TEMPLATENAME% tags (for CoW based templates) 2011-03-16 11:19:31 +01:00
Marek Marczykowski
dced8dafef Build universal (appvm,netvm,proxyvm), cow-based template 2011-03-16 09:52:21 +01:00
Joanna Rutkowska
f224704bc5 template: remove previous appmenus in pre script 2010-10-01 15:40:01 +02:00
Joanna Rutkowska
f605850d00 Fix conf file recration script invokation 2010-10-01 15:38:28 +02:00
Joanna Rutkowska
cd1a13fecc Use just a small subsset of appmenus for template VM 2010-09-30 22:56:13 +02:00
Joanna Rutkowska
ab30193104 Recreate VM conf files in the %post of template.rpm 2010-09-30 17:28:58 +02:00
Joanna Rutkowska
bc11899bcc Do not complain about arch-specific binaries in noarch.rpm 2010-09-16 19:23:32 +02:00
Joanna Rutkowska
2ca048244d Add dispvm-prerun.sh script to template rpm
This script should be part of the Template VM RPM, rather than core RPM, because it is
TemplateVM-specific, i.e. depends on the actual software installed in the VM, and also
is closely related to the dispvm-dotfiles.tbz that is also part of template RPM now.
2010-07-27 15:04:56 +02:00