Commit Graph

21 Commits

Author SHA1 Message Date
David Cassany
645542c33a
Distinguish install and image dracut config
This commit distinguishes the files that should be installed inside
the image dracut only than the ones installed in both, in install initrd
and image initrd.

Fixes #858
2018-10-30 14:53:42 +01:00
Marcus Schäfer
fcda2c4f9a
Added support for config-cdroot archive
The image description now allows an optional file named:
config-cdroot.tar[.compression_postfix]. The file gets
unpacked as user data for live and install ISO images.
This allows users to add e.g license files or reference
documentation to the ISO image. This Fixes #737
2018-05-28 17:25:05 +02:00
Marcus Schäfer
fd58ae39ed
Cleanup hybrid call and use of iso tool options
The extra isohybrid call is only needed if the mkisofs
tool category is used. Thus it should be only visible
at the place where the isofs is created and not as an
extra step in the builder tasks. Additionally the handling
of extra options was mkisofs specific and should be
better done as a common meta_data record. The tool
specific options should only appear in the tool specific
class implementations
2018-03-22 17:25:53 +01:00
Marcus Schäfer
62fc4c159f
Fixup setup of root_filesystem_is_multipath
The variable is set to a boolean value or None. If set to
False due to a configuration of oem-multipath-scan this
will cause the dracut multipath module to be omitted.
In any other case the presence of the multipath module
decides whether it will be included into the dracut
generated initrd or not.
2018-03-09 14:03:23 +01:00
Marcus Schäfer
4fdf4b646a
Use dracut modules based on feature use
As the kiwi build dracut initrd is a generic one which
includes all installed dracut modules we missed a way to
exclude modules from beeing incorporated even if we know
it would not be needed. One example is the multipath module
which would only be useful if the oem multipath scan is
configured in the image description
2018-03-08 15:58:38 +01:00
Marcus Schäfer
bcd170a04d
Fixed kiwi dracut config for the final system
Once the image has been deployed on the target and the
system is up and running some of the kiwi dracut modules
used for deployment are no longer needed and should not be
taken into account when another dracut call happens on the
system.
2018-01-27 11:14:48 +01:00
Marcus Schäfer
f9c38557d5
Fixed installation image builder
Use get_boot_names from BootImage instance to ask for
the name of the initrd instead of constructing this
information from static values. The name of the initrd
is different per distro and toolkit
2018-01-24 17:18:51 +01:00
Marcus Schäfer
1f348e8436 Add support for net install in dracut kiwi-dump
This implementes one of the tasks from Issue #576
2018-01-19 14:27:52 +01:00
Marcus Schäfer
d582dc90bd Implementation of dracut kiwi-dump module
Provide the capabilities of the oem install code as
dracut module. The implementation covers the result
of the installiso="true" configuration. Installation
from remote sources still needs to be done and will
follow in an extra pull request. This addresses
Issue #576
2018-01-16 16:24:58 +01:00
Marcus Schäfer
fdc33a7ede Fix isohybrid call
isohybrid errors printed on stderr were not treated as fatal
but should be treated as such. In addition isohybrid should
distinguish for efi setup according to the efi setup of the
image itself
2017-09-05 22:00:32 +02:00
Marcus Schäfer
bc1089b257 Refactor code which deals with Xen
Provide two methods is_xen_guest and is_xen_server which
are used instead of the former machine domain and firmware
processing. Issue #429
2017-07-20 10:42:49 +02:00
Marcus Schäfer
cf85e577e7 Implement custom argument handling for xz_options
Evaluate and hand over custom_args processing for the
xz_options argument to all classes which performs
xz compression tasks. This Fixes #373
2017-06-20 09:24:56 +02:00
Marcus Schäfer
62a5cf1b6b Fixup iso image builder(s) lookup path
Don't lookup bootloader required files in the boot image root
directory. Those needs to be looked up in the system image
root directory
2017-06-12 23:14:21 +02:00
Marcus Schäfer
d4674e30c5 Fixup detection of grub directory name
In order to put grub data to boot/grub2 or boot/grub a check for
the grub2-tool vs. grub-tool name is performed. This requires
access to the image root directory on a file basis which is not always
applicable. When setting up the grub bootloader for e.g EFI boot on
an iso image the rootfs can't be directly accessed because the iso
image contains the rootfs in a compressed format. This commit
refactors the check to be generic for all image types
2017-06-07 23:40:36 +02:00
Marcus Schäfer
6cc0b2085d Flake cleanup for unit tests 2017-03-07 13:03:10 +01:00
Marcus Schäfer
ffbfaf772d
Fixed pxe install archive md5 file
The md5 sum must be created from the uncompressed version
of the disk image
2016-09-13 12:01:30 +02:00
Marcus Schäfer
31844bffd8 Added missing trigger file for oem pxe install
The config.vmxsystem trigger file was missing in the oem
install initrd used when deploying a disk image over pxe
2016-09-13 11:14:29 +02:00
Bo Maryniuk
06b95b727d Replace 'builtins.open' with patch_open decorator 2016-06-07 17:54:24 +02:00
Marcus Schäfer
c4c3c7054f
Fixed 32bit x86 builds
Put it all under the ix86 namespace
2016-03-16 17:31:46 +01:00
Marcus Schäfer
e6cc5bfa09 Move from nose to pytest
nose is no longer maintained, thus we have to move to another
testing system. This commit updates the tox setup and all tests
to use pytest instead of nose.
2016-03-14 12:23:14 +01:00
Marcus Schäfer
b3c8d071de
Move builder test cases to match namespace 2016-03-08 15:15:08 +01:00