Commit Graph

12 Commits

Author SHA1 Message Date
Marek Marczykowski-Górecki
9b2078d346
Add support for template with partition table on root.img
When TEMPLATE_ROOT_WITH_PARTITIONS is set, include (GPT) partition table
and install actual OS on the first one. This allows installing grub, or
other bootloader.

Fixes QubesOS/qubes-issues#2577
2017-06-24 01:28:37 +02:00
Jason Mehring
9e91084ef2 Debian Wheezy template addition and refactoring to allow Whonix TEMPLATE_FLAVOR 2014-10-14 12:02:12 -04:00
Marek Marczykowski
75a63613bc cleanup-image: smart image shrink using fstrim
Linux loop driver support TRIM operation for some time (from 3.1
kernel), which is mapped to hole punch operation in underlying
filesystem (which must support it - ext* and xfs have it).
This is much faster and less space consuming than previous cp --sparse
method.
2013-04-28 22:49:41 +02: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
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
e25fed755a reduce verbosity based on $VERBOSE variable 2012-11-18 04:01:49 +01:00
Marek Marczykowski
7ed720ee82 cleanup_image: hide messages from rpmdb rebuild
If version mismatch, rpm --rebuilddb will complain about some files, but is
isn't critical, so just hide those messages. We still take care of exit code.
2012-06-26 03:38:10 +02:00
Marek Marczykowski
a306aa7dbc cleanup_image improvements 2012-06-06 02:54:10 +02:00
Marek Marczykowski
a53cf4388d abort on errors (eg disk full) 2012-01-03 22:33:20 +01:00
Joanna Rutkowska
d0d1447e2b cleanup fixes 2011-11-09 17:14:09 +01: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
Rafal Wojtczuk
64c93fc510 Add cleanup_image script 2010-09-17 18:08:12 +02:00