Commit Graph

3566 Commits

Author SHA1 Message Date
Marcus Schäfer
aeccf6bdce
Bump version: 9.20.7 → 9.20.8 2020-04-16 12:13:39 +02:00
Marcus Schäfer
0b2a991a0a
Merge pull request #1402 from OSInside/fix_return_value_from_get_grub2_mkconfig_tool
Fixed return value from _get_grub2_mkconfig_tool
2020-04-16 12:12:41 +02:00
Marcus Schäfer
f6b3b14020
Fixed return value from _get_grub2_mkconfig_tool
The method returned the basename of the tool if it could
be found by Path.which(). But the method's scope has been
changed in a way that the return value of the method must
be the result from Path.which() to allow working on the
full path name.
2020-04-16 11:24:28 +02:00
Marcus Schäfer
c72a26daee
Bump version: 9.20.6 → 9.20.7 2020-04-16 10:26:29 +02:00
Marcus Schäfer
91373ea845
Merge pull request #1398 from OSInside/validate_grub_config_on_linuxefi
Validate use of GRUB_USE_LINUXEFI
2020-04-16 10:25:45 +02:00
David Cassany
c8d5c5a02e
Make CommandCapabilities.check_version take the longest match
This commit ensures that when trying to parse the version of a tool
the comparison is done with the longest match for the given regular
expression. This solves cases such in `grub2` where the tool name
already provides some digit that could be seen as a version.
2020-04-16 10:25:21 +02:00
Marcus Schäfer
4ae29ed02c
Merge pull request #1393 from OSInside/qemu_performance
Create qcow2 images in two steps
2020-04-16 09:20:23 +02:00
Marcus Schäfer
a46c56a546
Validate use of GRUB_USE_LINUXEFI
On systems that uses GRUB_USE_LINUXEFI with grub2 version
less than 2.04 there is no support for dynamic EFI
environment checking. In this condition we extend the grub
setup to add this support. The change kiwi does is as
follows:

* Apply only on grub < 2.04
  1. Modify 10_linux to set linux/initrd as variables
  2. Write hybrid setup as 01_efihybrid

This Fixes bsc#1165960 and bsc#1168480
2020-04-15 15:24:13 +02:00
Marcus Schäfer
0a63d9657f
Merge pull request #1400 from OSInside/fix_check_for_grub_capabilities
Fixed check for grub mkconfig capabilities
2020-04-15 13:54:52 +02:00
Marcus Schäfer
0a668bd694
Fixed check for grub mkconfig capabilities
The check for the capabilities of the tool were applied to
the tool installed on the host but the later call of the
tool will be done with the tool inside the image root
2020-04-15 11:37:23 +02:00
Marcus Schäfer
dd801fe902
Merge pull request #1397 from jloeser/devel
Fixed typo in docstring
2020-04-15 11:00:36 +02:00
Jan Löser
44c7166da2 Fixed typo in docstring
Istall -> Install
2020-04-14 16:25:48 +02:00
Marcus Schäfer
5442e9c88a
Create qcow2 images in two steps
The creation of the qcow2 format was done in one qemu-img
convert call. That call instructs qemu to compress and
convert in one call. The downside of this approach is that
not all qcow2 options can be used. For example the setup
of:

    <type ... formatoptions="preallocation=metadata"/>

failed the build with an error message that compression and
preallocation is not possible at the same time. Thus this patch
changes the way the qcow2 image is created to be done in two
steps. The first step converts the format without compression
and therefore allows for any format option to be used. The
second call only applies the compression and leads to the
final result.
2020-04-11 18:18:02 +02:00
Marcus Schäfer
974662934d
Bump version: 9.20.5 → 9.20.6 2020-04-03 16:11:57 +02:00
Marcus Schäfer
d26afc0445
Merge pull request #1389 from OSInside/pxe_filesystem_optional
Make build of filesystem image optional for pxe
2020-04-03 16:11:36 +02:00
Marcus Schäfer
899e6b7a4a
Merge pull request #1390 from OSInside/overlay_per_profile
Allow overlay directories for profiles
2020-04-03 16:11:15 +02:00
Marcus Schäfer
daf8eff843
Merge pull request #1391 from OSInside/fix_plugin_documentation
Fixed plugin documentation
2020-04-03 16:10:52 +02:00
Marcus Schäfer
5702245aa6
Fixed plugin documentation
While setting up the kiwi boxed plugin I realized some small
mistakes in the plugin documentation
2020-04-02 17:13:26 +02:00
Marcus Schäfer
29a9d60a38
Allow overlay directories for profiles
In addition to the existing root/ overlay directory which
applies always there can now also be profile specific overlay
directories. If an overlay directory should be applied for
a specific profile this can now be done by placing this data
in a directory that is named the same as the profile name.
2020-04-02 12:58:38 +02:00
Marcus Schäfer
641a3d8fa2
Make build of filesystem image optional for pxe
Allow to build a kernel/initrd pair without a root
filesystem image. Related to Issue #1388
2020-04-01 14:33:13 +02:00
Marcus Schäfer
6d05b8dbff
Bump version: 9.20.4 → 9.20.5 2020-03-27 10:41:52 +01:00
Marcus Schäfer
1c8b70c26c
Merge pull request #1386 from OSInside/flag_root_part_origin
Added new oem-resize-once element
2020-03-27 10:41:27 +01:00
Marcus Schäfer
94c7a7cdf6
Added new oem-resize-once element
The new element controls the behavior of the repart/resize code
in the oem-repart dracut module. By default the repart/resize
happens on every reboot and therefore also allows for disk
geometry changes during the livetime of the machine. If the
element is set to false the repart/resize operation happens
only once and then never again. To check for this condition
a new profile environment variable kiwi_rootpartuuid which
holds the PARTUUID of the root partition has been added to
the disk builder.
2020-03-27 10:37:42 +01:00
Marcus Schäfer
3be0bc5182
Merge pull request #1368 from OSInside/wsl_appx_support
Added new image type: wsl
2020-03-27 10:16:34 +01:00
Marcus Schäfer
44a1d78e96
Added new image type: wsl
Support for building appx container images for
Windows Subsystem Linux (WSL). This Fixes #1235
2020-03-26 19:42:25 +01:00
Marcus Schäfer
b659ab170e
Merge pull request #1387 from OSInside/add_secure_boot_parameter
Add SECURE_BOOT parameter for grub2 in efi mode
2020-03-26 16:18:27 +01:00
David Cassany
fe3c2f3c73
Add SECURE_BOOT parameter for grub2 in efi mode
This commit adds the SECURE_BOOT parameter on bootloader sysconfig
for grub2.

Fixes bsc#1167746
2020-03-26 15:38:47 +01:00
Marcus Schäfer
b444bc2025
Merge pull request #1384 from OSInside/no_default_boot_partition_for_snapshots
No default boot partition for btrfs_root_is_snapshot
2020-03-25 11:16:35 +01:00
David Cassany
7492c83ebf
No default boot partition for btrfs_root_is_snapshot
This commit ensures no boot partition is used when root is set to be
a btrfs snapshot unless this is explicitly required by the user.

Fixes #1351
2020-03-25 09:22:38 +01:00
Marcus Schäfer
46cdcc7a2a
Merge pull request #1382 from OSInside/fix_allocation_check
Make disk allocation check more robust
2020-03-24 16:11:39 +01:00
Marcus Schäfer
a437940f84
Make disk allocation check more robust
The tools used to check the disk allocation condition
are sfdisk and sgdisk. The problem is that at least sfdisk
is different in behavior and functionality compared across
the distributions we support with kiwi. In addition
the verification for the msdos table cannot be used to
distinguish between intentionaly wanted free space on
disk and a disk that has not yet been resized. Thus
this commit changes two parts:

a) always report unallocated space available for the msdos
   table to allow to run kiwi's resize code

b) make sure the table type is taken into consideration
   It's important to run the verification based on the
   table type (DOS, GPT) where we know the tools to work. In any
   other case we report the disk to have unallocated space
   and give the resize code a chance
2020-03-23 10:54:59 +01:00
Marcus Schäfer
d5ffcd0978
Fixed openstack integration test
nothing provides python2-oslo and required py2 packages
2020-03-21 13:03:48 +01:00
Marcus Schäfer
e2cd4dfe95
Merge pull request #1380 from OSInside/fix_centos_test
Fixed centos integration test
2020-03-20 18:30:13 +01:00
Marcus Schäfer
e566153138
Fixed bootloader install
Mount EFI partition in any case not only for the shim target
2020-03-20 17:53:28 +01:00
Marcus Schäfer
179ae88958
Fixed centos integration test
Currently centos images does not build because of
a broken XML description
2020-03-20 17:47:44 +01:00
Marcus Schäfer
e154914c3e
Merge pull request #1377 from OSInside/complete_fstab_refactoring
Complete refactoring of fstab handling
2020-03-20 09:51:06 +01:00
Marcus Schäfer
2a527cc7a3
Merge pull request #1375 from OSInside/fix_container_fstab_handling
Cleanup fstab handling for containers
2020-03-20 09:50:42 +01:00
Marcus Schäfer
ac7140389e
Merge pull request #1378 from OSInside/add_oem_tests_for_ubuntu
Adding OEM integration tests for Ubuntu
2020-03-20 09:49:22 +01:00
Marcus Schäfer
fdebb919ac
Merge pull request #1379 from OSInside/broader_centos_test
Update centos integration test
2020-03-19 18:13:54 +01:00
Marcus Schäfer
be27285dc1
Update centos integration test
There is no testing of centos disk images that uses the
old msdos partition table. All tests were done with GPT
table layout.
2020-03-19 18:12:47 +01:00
David Cassany
85531ea984
Adding OEM integration tests for Ubuntu
This commit adds oem image type for Ubuntu integration tests
2020-03-19 15:56:14 +01:00
Marcus Schäfer
3b7f5be918
Complete refactoring of fstab handling
With the new Fstab class from prior pull request there is an
opportunity to handle all fstab related actions to be done
by that class. This commit extends the Fstab class with an
add_entry method such that we can avoid the extra lists
holding raw fstab lines in e.g the disk builder. In the end
all fstab related data is stored in an instance of the Fstab
class. This also extends the KIWI api by an fstab management
class. Related to #1329 and #1349
2020-03-18 16:01:13 +01:00
Marcus Schäfer
a62cbd5edb
Cleanup fstab handling for containers
When building container images an extra create_fstab method
exists that created an empty fstab file. The reasons for this
are historical and also related to appx support from obs.
The obs based support for appx containers was based on the
creation of a kiwi docker image that got modified and turned
into an appx container. Now with native appx support by kiwi
this special fstab handling is no longer needed and should
be deleted. This Fixes #1329
2020-03-18 14:12:54 +01:00
Marcus Schäfer
e5b51e7dab
Merge pull request #1374 from OSInside/better_fstab_handling
Better fstab handling
2020-03-17 13:44:29 +01:00
Marcus Schäfer
ea024e4d7c
Merge pull request #1373 from OSInside/fix_fstab_order
Fix order in fstab
2020-03-17 13:44:04 +01:00
Marcus Schäfer
bc372a12b1
Validate and order final fstab file
On write of the final fstab file read, validate and order
the entries. This is related to Issue #1349
2020-03-17 11:25:56 +01:00
Marcus Schäfer
bfcb277fe4
Added Fstab class
Handling of fstab should be done in its own namespace and class.
The current handling of fstab entries is spread at several places.
There should be only one code that writes the fstab entries and
that code should also care for the correct canonical order of
the mountpoints
2020-03-17 11:25:56 +01:00
David Cassany
563f258586
Fix order in fstab
Any mount point directly under / should be just right after the root
mountpoint and before the custom mountpoints based on user's subvolume
configuration.

Fixes #1349 and bsc#1164310
2020-03-17 07:07:38 +01:00
Marcus Schäfer
df43fe313a
Merge pull request #1369 from OSInside/add_kpartx_dependency_on_dracut_module
Add kpartx dependency on dracut-kiwi-oem-dump package
2020-03-16 21:24:31 +01:00
Marcus Schäfer
e783470975
Merge pull request #1370 from OSInside/skip_nodev_folders_for_size_calculation
Skip nodev devices for size calculations
2020-03-16 21:23:28 +01:00