kiwi-el8/test/data
Marcus Schäfer ca75086128
Prevent swap partition to be the last one
In an OEM deployment that requested the creation of a swap
partition via <oem-swap> that swap partition was created
at first boot and was always the last partition on the disk.
This was required because it could not be placed before
any other partition without destroying those partition
contents. This process leaves the system in an inflexible
condition if the storage device can change its geometry
dynamicly as it's the case for SAN systems. The typical
deployment target for OEM images are SAN storage clusters
and it's cumbersome to resize the root partition if swap
is last.

This commit Fixes #1231 and changes the handling of swap if
requested via <oem-swap> as follows:

1. The swap space is created as part of the image build process
   and no longer on first boot of the image via dracut code.
   This increases the size of the non compressed .raw disk image
   by the configured swap space size or the default. The
   compressed versions are not affected since zero initialized
   swap space compresses to almost no space. Deployment of
   the image however also deploys the swap partition which
   increases deployment time. For big swap configurations
   it's advisable to switch off image verification via
   oem-skip-verify. For very big swap configurations it's
   also recommended to prevent kiwi from adding them as part
   of the image and let them be created on first boot via
   a systemd service that e.g places a swap file, or creates
   a swap volume when possible such that the fexibility to
   resize the rootfs is still available.

2. The setup of the swap space is now explicit. It's no longer
   calculated by twice times RAM size because on newer machines
   this could lead to huge numbers. Either the kiwi encoded
   default swap size applies or the user configured value.

3. LVM based oem disks creates the swap space as logical volume.
   The volume is created as part of the image build process
   and no longer on first boot. The swap volume at build time
   of the image is of a minimal size and gets resized on first
   boot.

4. The move of the swap creation into the builder code also
   handles swap per configured device persistency schema like
   any other devices. This means by default swap is mounted
   via by-uuid name and thus also Fixes #1259
2019-11-25 12:05:57 +01:00
..
.config/kiwi Add the possibility to disable runtime checks 2019-04-02 16:00:03 +02:00
description KIWI - appliance builder next generation 2015-12-05 16:17:10 +01:00
description.buildservice Add support for alternative config file *.kiwi 2016-01-25 16:24:23 +01:00
isoboot Delete obsolete repository types 2019-04-22 23:15:42 +02:00
oemboot/example-distribution Delete obsolete repository types 2019-04-22 23:15:42 +02:00
root-dir KIWI - appliance builder next generation 2015-12-05 16:17:10 +01:00
__init__.py KIWI - appliance builder next generation 2015-12-05 16:17:10 +01:00
example_arm_disk_size_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_btrfs_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_config.xml Prevent swap partition to be the last one 2019-11-25 12:05:57 +01:00
example_disk_config.xml Prevent swap partition to be the last one 2019-11-25 12:05:57 +01:00
example_disk_size_config.xml Prevent swap partition to be the last one 2019-11-25 12:05:57 +01:00
example_disk_size_empty_vol_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_disk_size_oem_volume_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_disk_size_vol_root_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_disk_size_volume_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_dot_profile_config.xml Prevent swap partition to be the last one 2019-11-25 12:05:57 +01:00
example_lvm_default_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_lvm_no_root_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_lvm_no_root_full_usr_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_lvm_preferred_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_multiple_users_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_no_default_type.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_no_image_packages_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_no_imageinclude_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_ppc_disk_size_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_pxe_config.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_runtime_checker_boot_desc_not_found.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
example_runtime_checker_config.xml Refactor ISO boot, use grub in EFI mode 2019-07-02 11:56:02 +02:00
example_runtime_checker_no_boot_reference.xml Delete obsolete repository types 2019-04-22 23:15:42 +02:00
gz_data.gz KIWI - appliance builder next generation 2015-12-05 16:17:10 +01:00
info.xml Move info.xml test data into its own file 2016-10-13 10:47:24 +02:00
iso_listing.txt Added isols method in Iso class 2015-12-09 12:53:00 +01:00
iso_no_marker.iso Added create_header_end_block method in Iso class 2015-12-09 17:06:22 +01:00
iso_with_marker.iso Added create_header_end_block method in Iso class 2015-12-09 17:06:22 +01:00
key_value KIWI - appliance builder next generation 2015-12-05 16:17:10 +01:00
my_plugin.rnc Add extension validation and data access 2016-12-01 10:45:17 +01:00
my_plugin.rng Add extension validation and data access 2016-12-01 10:45:17 +01:00
repomd.xml Implemented SolverRepositoryRpmMd 2016-11-08 18:17:51 +01:00
sysconfig_example.txt Completion for grub bootloader configuration 2017-01-23 17:24:04 +01:00
vagrant_virtualbox.ovf Add support to build vagrant boxes with the Virtualbox provider 2019-03-05 15:33:18 +01:00
xz_data.xz KIWI - appliance builder next generation 2015-12-05 16:17:10 +01:00