Commit Graph

3363 Commits

Author SHA1 Message Date
Marcus Schäfer
b335bcf392
Bump version: 9.19.0 → 9.19.1 2019-11-25 15:53:14 +01:00
Marcus Schäfer
527b12ea74
Fixed runtime checks on volume label setup
Fixed the checks for check_volume_setup_defines_reserved_labels
and check_volume_label_used_with_lvm. Both checks needs to
skip on the kiwi internally created volume named LVSwap
2019-11-25 15:51:19 +01:00
Marcus Schäfer
74a046c4d3
Delete superfluous .osc metadata from build tests
Not sure how and why the .osc buildservice metadata
was added to the git but it's for sure not needed
2019-11-25 15:23:29 +01:00
Marcus Schäfer
bdb84765d9
Bump version: 9.18.35 → 9.19.0 2019-11-25 15:19:01 +01:00
Marcus Schäfer
07a796254b
Merge pull request #1272 from OSInside/swap_not_last
Swap not last
2019-11-25 14:43:44 +01:00
Marcus Schäfer
46a97c96c7
Added check_volume_setup_defines_reserved_labels
Check to prevent using reserved filesystem labels in LVM
volume definitions
2019-11-25 12:05:57 +01:00
Marcus Schäfer
e16c08789b
Fixed extending LVM volumes
For extending the LVM volumes a resize prefix is set for each
volume. If no extra prefix is needed it can happen that the
former prefix setting is used which is wrong. The resize
prefix must be reset for each new volume iteration
2019-11-25 12:05:57 +01:00
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
Marcus Schäfer
d9d9163099
Merge pull request #1273 from OSInside/add_grub_config_in_efi_partition
Include grub.cfg inside the efi partition
2019-11-25 09:18:24 +01:00
David Cassany
c8ec226664
Include grub.cfg inside the efi partition
This commit ensures the grub.cfg file is included within the vfat efi
partition.

This fixes #1271 and bsc#1157354
2019-11-22 09:39:59 +01:00
Marcus Schäfer
0b1b615a4a
Bump version: 9.18.34 → 9.18.35 2019-11-20 12:37:19 +01:00
Marcus Schäfer
c8a28440ac
Merge pull request #1269 from OSInside/fix_oem_reboot
Fixed subsequent reboot of oem disk
2019-11-20 08:17:40 +01:00
Marcus Schäfer
5ac6441248
Fixed subsequent reboot of oem disk
On a second reboot of an oem disk we check with gdisk's
verification command if the disk needs to be resized.
That command however mounts the disk in the background
and therefore it's urgently required to mask the systemd
rootfs service before. Otherwise systemd thinks this is
evil and drops into a rescue shell
2019-11-19 21:53:49 +01:00
Marcus Schäfer
2ee8dd4a15
Reference commit for SUSE maintenance
This commit adds a reference to Issue #1261 and the
report in bugzilla bsc#1157104
2019-11-19 09:32:38 +01:00
Marcus Schäfer
4162d4cab3
Bump version: 9.18.33 → 9.18.34 2019-11-19 09:02:14 +01:00
Marcus Schäfer
dc58434e4c
Merge pull request #1266 from OSInside/fix_relative_path_URIs
Allow use of relative paths for `dir:<path>` URIs
2019-11-18 10:40:26 +01:00
Marcus Schäfer
fe045cfd30
Merge pull request #1268 from OSInside/fix_alias_documentation
Improve alias documentation in XML schema
2019-11-15 16:10:33 +01:00
David Cassany
c526484d31
Improve alias documentation in XML schema
This commit aligns the documentation of the default repository alias
with the current implementation.

Fixes #1247
2019-11-15 14:51:18 +01:00
Marcus Schäfer
399c277297
Bump version: 9.18.32 → 9.18.33 2019-11-15 09:03:19 +01:00
Marcus Schäfer
e2ed14a3ef
Merge pull request #1267 from OSInside/adapt_s390_oem_test
Adapt s390 oem test
2019-11-15 09:02:51 +01:00
Marcus Schäfer
472cb07d48
Fixed zipl bootloader config template
The targetgeometry value is not allowed for SCSI and FBA
mode. So far we handled only SCSI and failed on FBA mode.
This commit fixes it
2019-11-14 16:59:02 +01:00
Marcus Schäfer
491717aeec
Adapt test-image-oem integration test for s390
The test was originally designed to test for DASD 4k block
storage. However the kpartx utility in the Leap15, TW code
stream has issues mapping partitions if the loop device
was setup using 4k sector size. So far we can't create
images with 4k blocksize due to that issue. Thus the
integration test is now adapted for an emulated DASD device
in FBA mode which is not using 4k blocksize. Once the
problem with kpartx is solved on s390 we will create another
integration test to test 4k image builds
2019-11-14 16:58:53 +01:00
Dan Čermák
7dcdc19beb
Merge pull request #1263 from OSInside/update_package_element_docs
Document possible values for the name attribute of package
2019-11-14 15:40:04 +01:00
David Cassany
179503f3b1
Allow use of relative paths for dir:<path> URIs
This commit allows the use of relative paths for local URIs using the
the following format:

dir:<path>

This is helpful to set in config.xml local URIs for repositories.

Fixes #1261
2019-11-14 15:19:40 +01:00
Dan Čermák
c0ce3327b0
Document possible values for the name attribute of package
This fixes #1260

Co-Authored-By: Thomas Schraitle <tom_schr@web.de>
2019-11-14 13:07:31 +01:00
Marcus Schäfer
cfb4b697d6
Bump version: 9.18.31 → 9.18.32 2019-11-14 12:24:16 +01:00
Marcus Schäfer
52715d2a13
Merge pull request #1264 from OSInside/fix_s390_bootloader_setup
Fixed zipl bootloader setup for s390 images
2019-11-14 12:23:48 +01:00
Marcus Schäfer
8a679986aa
Merge pull request #1265 from OSInside/update_s390_integration_tests
Update s390 integration tests
2019-11-14 12:23:26 +01:00
Marcus Schäfer
726eeacee5
Fixed zipl bootloader setup for s390 images
The preparation to call zipl and the call itself were wrong.
For whatever reason the kernel image the initrd are moved
to another location prior to calling zipl. That move broke
the system because no kernel/initrd existed at the expected
place anymore. In addition the zipl call itself was issued
from a the wrong directory. Also no config file was written
as an after effect of the refactoring in Issue #1194. This
Fixes #1173 and bsc#1156694
2019-11-14 12:01:06 +01:00
Marcus Schäfer
4dd7ab4cc1
Update s390 integration tests
Added vmx build test to run in kvm on s390. Updated the
existing oem build test to deploy on DASD. The concept
of the network setup invented by kiwi for s390 does no
longer apply and was also not used on the s390 distribution
2019-11-14 09:45:00 +01:00
Marcus Schäfer
79fa185573
Bump version: 9.18.30 → 9.18.31 2019-11-07 16:00:01 +01:00
Marcus Schäfer
9f16991efa
Merge pull request #1258 from OSInside/fix_efi_mode_for_isos
Ensure grub.cfg is copied in EFI/BOOT folder
2019-11-06 16:32:42 +01:00
David Cassany
786f69354f
Fix gitlab CI pipeline
Ensure the gitlab CI includes make package for docs generation
2019-11-06 13:40:09 +01:00
David Cassany
60659a2dde
Ensure grub.cfg is copied in EFI/BOOT folder
This commit fixes the live images in efi mode. Grub configuration file
is copied to the correct location in <boot_dir>/EFI/BOOT.

Fixes bsc#1155815
2019-11-06 12:58:49 +01:00
Marcus Schäfer
c0f7c95856
Bump version: 9.18.29 → 9.18.30 2019-10-31 14:38:47 +01:00
Marcus Schäfer
d39e4a9d03
Merge pull request #1257 from bugfinder/master
fix kernel module handling for xz compressed modules
2019-10-31 14:38:04 +01:00
Ruediger Oertel
bc8658fe06 fix kernel module handling for xz compressed modules
and firmware files to fix issue #1256
2019-10-31 14:24:28 +01:00
Marcus Schäfer
20825f121f
Bump version: 9.18.28 → 9.18.29 2019-10-29 10:06:36 +01:00
Marcus Schäfer
055751e2da
Update Host/Image support matrix
Update documentation about the Host vs. Image support and
compatibility matrix with regards to the SLES target.
2019-10-29 10:03:46 +01:00
8e9f92c204
Merge pull request #1255 from OSInside/default_kiwi_config
Add default /etc/kiwi.yml file
2019-10-28 18:15:49 -04:00
Marcus Schäfer
50511367a2
Add default /etc/kiwi.yml file
Provide a comment only etc/kiwi.yml file that contains all
parameters we support so far including a short description
This Fixes #1232
2019-10-28 16:44:27 +01:00
Marcus Schäfer
416116cded
Merge pull request #1252 from martinezjavier/enable-bls
Enable BLS configuration if is supported
2019-10-28 10:49:59 +01:00
Marcus Schäfer
d08752c1a7
Bump version: 9.18.27 → 9.18.28 2019-10-28 10:15:46 +01:00
Javier Martinez Canillas
9d8ce7eedb
Enable BLS configuration if is supported
Fedora now uses a BLS configuration by default, but this is not supported
by all distributions. So check if is supported by the grub2-mkconfig tool
and only enable the option if that's the case.

Fixes: #1248
2019-10-25 18:05:02 +02:00
Marcus Schäfer
66f735c109
Delete left over print statement from unit test 2019-10-25 15:10:42 +02:00
Marcus Schäfer
1ead12bbc3
Bump Fedora x86 build test to Fedora30 2019-10-25 10:38:09 +02:00
Marcus Schäfer
111a586e8f
Bump version: 9.18.26 → 9.18.27 2019-10-25 09:33:06 +02:00
Marcus Schäfer
87d8677e20
Merge pull request #1251 from OSInside/fix_btrfs_root_is_snapshot
Fix btrfs_root_is_snapshot
2019-10-25 09:32:49 +02:00
Marcus Schäfer
a66849ff8e
Merge pull request #1250 from OSInside/fix_isolinux_ui_setup_on_serial
Skip isolinux ui setup on serial terminal config
2019-10-25 08:15:15 +02:00
David Cassany
45146ba6cf
Fix btrfs_root_is_snapshot
This commit makes sure the chrooted operations of over a loop device
including btrfs subvolumes and root as an snapshot include the
`/.snapshots` subvolume mount. This is necessary for certain operations
that depend on the layout, e.g. grub configuration using `grub2-mkconfig`.
2019-10-24 22:06:33 +02:00