Commit Graph

3692 Commits

Author SHA1 Message Date
Marcus Schäfer
0ae7bbe74e
Fixed check for root device in grub config
There is a code path that fixes the grub2-mkconfig used root device
when building in an environment that does not allow to resolve the
by-X path names, e.g an obs build worker without udev. For images
that explicitly defines a root=... value in the kernelcmdline
attribute the root device check was not called because the
_get_root_cmdline_parameter method returns None. This commit fixes
the method to return the expected root device in any case such that
the grub2-mkconfig root device check has a chance to fix what
grub2-mkconfig has created. This fixes bsc#1172928
2020-06-15 14:57:54 +02:00
Marcus Schäfer
dbc2664f16
Bump version: 9.21.0 → 9.21.1 2020-06-12 14:23:20 +02:00
Marcus Schäfer
8e54561fda
Merge pull request #1479 from dcermak/fix_vimrc_sed_call
Only modify /etc/vimrc if it exists in config.sh
2020-06-12 14:14:44 +02:00
Marcus Schäfer
0be307cd28
Fixed test-image-qcow-openstack
Nothing provides libyui-ncurses-pkg11, yast2-trans-en_US in
TW anymore
2020-06-12 14:10:48 +02:00
Marcus Schäfer
631069496c
Moved sle12 ppc integration test to internal bs
In agreement with IBM the sle12 integration test has been moved
into the internal buildservice. The reason for this change is
a python 3.4 compatibility problem. This version of python is
used in sle12 but would require patching of upstream kiwi in
terms of type hints and annotations to continue to work.
We don't want to cary this patch upstream but in the sle12_kiwi
repository which contains the kiwi used in sle12. Therefore
also the integration test needs to move into the internal
sle12 space.
2020-06-12 14:02:30 +02:00
Dan Čermák
1976d8667c
Remove sed calls to fix /etc/vimrc
An update of vim in Tumbleweed will move /etc/vimrc to /usr/share/vim as part of
the /usr - /etc split. This makes the sed call fail because /etc/vimrc no longer
exists.
However, the fix is not required anymore then, as the vim package dropped the
"syntax on" line from the default vimrc.
2020-06-12 13:38:26 +02:00
Marcus Schäfer
287a07f76f
Merge pull request #1480 from isbm/isbm-gitignore-update
Update gitignore
2020-06-12 12:24:15 +02:00
Marcus Schäfer
ae7a147825
Merge pull request #1478 from OSInside/fix_permissions_custom_kiwi_boot_image
Fixed permissions of custom boot image root dir
2020-06-12 12:23:40 +02:00
Bo Maryniuk
9c29a73b2d Ignore MyPy cache 2020-06-11 12:58:21 +02:00
Bo Maryniuk
514ccb0850 Ignore VSCode cache 2020-06-11 12:58:13 +02:00
Marcus Schäfer
c009e6a393
Fixed permissions of custom boot image root dir
When building a custom kiwi initrd the root directory
has the permissions of the mkdtemp created directory
but should have the permissions of a linux root dir
which is 0755. This Fixes #1394
2020-06-09 13:55:44 +02:00
Marcus Schäfer
a6d0dd9c99
Bump version: 9.20.19 → 9.21.0 2020-06-06 16:39:50 +02:00
Marcus Schäfer
6b92c4b193
Merge pull request #1469 from OSInside/disk_hook
Disk hook
2020-06-06 16:38:40 +02:00
Marcus Schäfer
fe123fb267
Added new post disk sync script hook
Allow to put a disk.sh script as part of the image description
which is called for the disk image types `vmx` and `oem`
only and runs after the synchronisation of the root tree into the
disk image loop file. At call time of the script the device name
of the currently mapped root device is passed as a parameter.
The chroot environment for the call is the mounted disk itself
which makes this different from the config.sh/images.sh caller
environment. This Fixes #1464
2020-06-06 16:29:24 +02:00
Marcus Schäfer
95e488943d
Merge pull request #1472 from OSInside/fix_dialog_size
Fixed size of msgbox dialog
2020-06-06 16:28:40 +02:00
Marcus Schäfer
395d376cab
Update user defined scripts documentation
Added information about new disk.sh script and reworked
the entire chapter
2020-06-05 12:20:02 +02:00
Marcus Schäfer
1b5f16b960
Fixed size of msgbox dialog
The width of the dialog was set to a small value which
causes the message to be choped. I found this when testing
pxe deployments. The error messages on "Failed to fetch..."
were missing the interesting part
2020-06-04 15:38:47 +02:00
Marcus Schäfer
e107abbc62
Update orthos test image
Simplify image for use in a pxe test deployment
2020-06-03 17:19:10 +02:00
Marcus Schäfer
a9260e8fca
Merge pull request #1467 from OSInside/access_to_root_disk_mountpoint
Allow to access disk root after sync_data
2020-06-03 08:57:56 +02:00
Marcus Schäfer
e9e1b00b09
Fixed VolumeManager cleanup
instances of VolumeManager creates temporary directories but
only stores the latest one. The cleanup leaves former directories
behind which is fixed by this commit
2020-06-02 15:04:55 +02:00
Marcus Schäfer
c7ed1cfc29
Allow to access disk root after sync_data
In preparation to allow a chroot operation into the loop
mounted disk this commit refactors the process when filesystems
gets umounted and also fixes the canonical order for calling
the destructors. Related to Issue #1464
2020-06-02 12:52:49 +02:00
Marcus Schäfer
c9b9025e43
Merge pull request #1463 from OSInside/add_efi_test_for_ubuntu
Add EFI firmware on OEM and ISO ubuntu tests
2020-05-29 10:29:38 +02:00
David Cassany
fca0e64a4c
Add EFI firmware on OEM and ISO ubuntu tests
This commits adds efi firmware for Ubuntu integration tests
2020-05-28 16:46:14 +02:00
Marcus Schäfer
08d92631d0
Bump version: 9.20.18 → 9.20.19 2020-05-27 11:30:37 +02:00
Marcus Schäfer
e8763e279f
Added test-image-custom-partitions to build_status 2020-05-27 11:30:23 +02:00
Marcus Schäfer
fcd308906b
Merge pull request #1461 from OSInside/custom_partition_reference_image
Added custom partition image integration test
2020-05-27 11:28:15 +02:00
Marcus Schäfer
3cd9befc10 Merge pull request #1462 from OSInside/fix_dracut_outfile_format_detection
Fix the boot path for initrd detection
2020-05-27 11:27:50 +02:00
David Cassany
bb5f3749f1
Fix the boot path for initrd detection
This commit fixes the path to check the initrd naming convetion from an
already existing initrd file in /boot
2020-05-26 16:36:00 +02:00
Marcus Schäfer
22fa6dcc0a
Bump version: 9.20.17 → 9.20.18 2020-05-26 15:15:42 +02:00
Marcus Schäfer
d7f0f72afb
Merge pull request #1458 from OSInside/fix_dracut_outfile_format_detection
Fixed dracut output file format detection
2020-05-26 15:15:20 +02:00
Marcus Schäfer
0a381b4a91
Merge pull request #1460 from OSInside/fix_grub2_patch_for_centos7
Fix the patch applied on grub.cfg
2020-05-26 15:13:46 +02:00
Marcus Schäfer
b5d7660433
Added custom partition image integration test
There are still people who like many extra static inflexible
entries in a partition table instead of using LVM or filesystem
volume capabilities for sometimes good but often questionable
reasons. In kiwi we intentionally support partition table
entries on a restricted basis but that does not mean you can't
create an image with a highly customized partition table.
However it includes some bits of custom code as part of the
image description and that's what this reference implementation
of an image with custom partitions demonstrates. The image
described here adds three extra partitions, var, var/log and
var/audit. The concept to create custom partitions is based on
specifying a spare partition which is by default created before
the root partition. The spare space can now be sliced into as
many partitions as needed and that needs to be implemented by
the author of the image description. Of course the partition
table itself comes with limitations which has to be respected
depending on the partition table type.
2020-05-26 12:43:12 +02:00
David Cassany
70bf9e98de
Fix the patch applied on grub.cfg
This commit fixes the patch applied on grub.cfg when EFI mode is
selected and grub < 2.04. There are some distros that make use of the
`linux16` command instead of `linux` in grub configuration, this commit
extends the regex to also consider `linux16` command.
2020-05-26 12:41:15 +02:00
Marcus Schäfer
f57f0ff96a
Fixed apt and pacman repository unit tests
The way the post_init method was used to test custom arguments
leads to a broken I/O wrapper. As consequence the test failed
when called with "pytest -s" and also leaves files around from
other test I/O redirections.
2020-05-26 11:48:15 +02:00
b2f3136392
Merge pull request #1459 from OSInside/fix_spec_file
Fixed spec file on bare word comparison
2020-05-26 05:03:08 -04:00
Marcus Schäfer
72dafb799f
Fixed spec file on bare word comparison
on e.g Fedora Rawhide rpm complains about bare word comparison
error: bare words are no longer supported, please use "..."
This patch fixes the spec template to respect this
2020-05-26 10:30:44 +02:00
Marcus Schäfer
eedbcf7065
Bump version: 9.20.16 → 9.20.17 2020-05-25 16:22:44 +02:00
Marcus Schäfer
bdb1220f35
Merge pull request #1448 from OSInside/refactor_disk_resize
Refactor dracut disk re-partition library
2020-05-25 16:22:24 +02:00
Marcus Schäfer
ecf0110ace
Merge pull request #1456 from OSInside/fix_linuxefi_mod
Fix scope for linuxefi grub config adaption
2020-05-25 16:21:13 +02:00
Marcus Schäfer
0d8bc80c1b
Merge pull request #1457 from OSInside/fix_sha256_line_ending
Fixed line ending of sha256 bundler file
2020-05-25 15:59:28 +02:00
Marcus Schäfer
f1303396f9
Fixed dracut output file format detection
The current way to detect the dracut output file format was
based on a lookup of the format used in the dracut tool itself.
However there are distributions like Ubuntu which calls dracut
and passes the name of the initrd file as options to the call.
This invalidates the checking done by kiwi. The only chance
for kiwi to do the same than the distributions does is by
looking for an initrd file pre-created by the package
installations and use the same format. Only if no such initrd
file exists the former format detection code applies. The
additional code expects any initrd file to match the glob
pattern 'init*'. This Fixes #1450
2020-05-25 14:31:49 +02:00
Marcus Schäfer
500fab909c
Fixed line ending of sha256 bundler file
The .sha256 file does not end with a newline. This Fixes #1449
2020-05-25 12:44:19 +02:00
Marcus Schäfer
024c3b6834
Fix scope for linuxefi grub config adaption
In kiwi we support a one time patch for the grub config file
that changes the static use of linuxefi to be dynamic. In
grub2 >= 2.04 all this has already been fixed but for grub2
version older than this version we applied the patch. The
patch however was only applied based on the presence of a
grub setting named GRUB_USE_LINUXEFI. It has turned out that
this variable is a custom extension not part of grub upstream
which makes the test functional only on distributions that
supports this setting. The use of linuxefi however is code
that belongs to grub upstream. Therefore this patch changes
the scope of the one time patch to be only based on the
version of grub no matter if GRUB_USE_LINUXEFI is supported
by the distro or not. This Fixes #1453
2020-05-25 12:33:19 +02:00
Marcus Schäfer
6042050297
Merge pull request #1455 from OSInside/fix_grubenv
Fixed root device setup in vendor grubenv
2020-05-25 11:46:58 +02:00
Marcus Schäfer
9218a9abdb
Fixed root device setup in vendor grubenv
In addition to the root device setup in grub.cfg we also
need to patch the vendor grubenv file which contains an
invalid kernelopts value written by grub2-mkconfig under
the conditions explained in Issue #1287. This Fixes
Issue #1454
2020-05-23 19:22:05 +02:00
Marcus Schäfer
5163ebf58a
Bump version: 9.20.15 → 9.20.16 2020-05-22 15:00:19 +02:00
Marcus Schäfer
49dbc5bbba
Fixed schematron rule for bootloader targettype
The targettype attribute must be allowed for the grub2_s390x_emu
bootloader name
2020-05-22 14:57:29 +02:00
Marcus Schäfer
f24183fe35
Bump version: 9.20.14 → 9.20.15 2020-05-22 14:35:46 +02:00
Marcus Schäfer
9618a5189d
Fixed parse result description reference
The object that holds the parse result also contains an
information about description_dir and derived_description_dir.
The change on the markup processing impacted the value for
description_dir to be no longer the origin (user provided)
directory. That broke any reference of files that belongs
to the description directory like custom scripts config.sh,
images.sh and so on.
2020-05-22 14:31:43 +02:00
Marcus Schäfer
d5fcde6b05
Fixed sdist MANIFEST
kiwi.markup was not part of the source tarball
2020-05-22 13:28:04 +02:00