Commit Graph

1593 Commits

Author SHA1 Message Date
Marcus Schäfer
d4b8a030d6
Make sure all required yum repo options are set
enabled and gpgcheck parameters has to be set for any
configured yum repository
2017-06-01 15:54:16 +02:00
Marcus Schäfer
9ccf079885
Fixup repository setup for yum
Yum cannot handle spaces between the key and the value.
This patch provides a method to tell ConfigParser to use
no spaces for the '=' delimiter and thus Fixes #357
2017-06-01 15:40:26 +02:00
Marcus Schäfer
38ced54ca4 Merge pull request #346 from SUSE/signing_key_option
Add --signing-key option
2017-05-31 16:42:55 +02:00
David Cassany
376e9daa58 Some fine tune updates
* Updated the docs for system_create command
* Reverted dracut image initialization
* Updated yum comment about repo_gpgcheck option
* Updated variable name in disk builder
* Typo correction
2017-05-31 15:41:11 +02:00
Marcus Schäfer
94557b01fc Merge pull request #356 from SUSE/fix_use_of_pre_requires
Fix use of pre requires in spec file
2017-05-31 11:25:01 +02:00
Marcus Schäfer
d799bd7a40 Merge pull request #354 from SUSE/edit_boot_sripts_working_dir
Fixup working dir for editboot scripts
2017-05-31 10:36:17 +02:00
David Cassany
617859b3a4 Include signing-key feature for boot images
This commit extends the behavior of --signing-key options in order
to import the provided key file into the boot image, in addition to
the regular image root tree.

Related to #342
2017-05-31 10:04:06 +02:00
Marcus Schäfer
d316584f9f Fix use of pre requires in spec file 2017-05-31 09:32:54 +02:00
Marcus Schäfer
2498ff6ba4
Fixup working dir for editboot scripts
editbootconfig and editbootinstall scripts needs to be
called from within the correct directory to allow access
to the written bootloader config files. For live images
the working directory was set to the wrong place. This
Fixes #353
2017-05-30 17:03:09 +02:00
Marcus Schäfer
dd6dfe0f7b
remove duplicated code from dhclient setup
IPADDR is assigned within dhclientImportInfo
original patch by Dinar Valeev <k0da@opensuse.org>
2017-05-29 21:33:20 +02:00
Marcus Schäfer
0160758650 Merge pull request #352 from DimStar77/bsc#957927
Fix spelling of 'processor'
2017-05-29 21:27:30 +02:00
Dominique Leuenberger
3ec8cc1cff
Fix spelling of 'processor'
https://bugzilla.opensuse.org/show_bug.cgi?id=957927
2017-05-29 20:50:35 +02:00
Marcus Schäfer
722584f486
Fixed pre-req for kiwi-pxeboot subpackage
the binaries groupadd and useradd used in the preinstall
scriptlet and provided by the shadow package needs a pre
requirement on shadow to make sure they exist when the
package gets installed. Fixes (bsc#1040256)
2017-05-28 21:37:25 +02:00
Marcus Schäfer
d27a8c41b8 Merge pull request #350 from SUSE/fix_existing_root_check
Fix existing root check, fixes #349
2017-05-28 21:26:20 +02:00
David Cassany
3355f93aad Fix existing root check, fixes #349
This commit fixes the validation of an existing root directory
for the command 'system build'. System build used to create the root
directory before performing the root existance check, thus the
check was always failing in any case. The root directory is created
inside the RootInit class within the 'create' method.

Fixes #349
2017-05-26 14:48:05 +02:00
Marcus Schäfer
16529e0d96 Merge pull request #345 from SUSE/no_automatic_use_of_existing_root
No automatic use of existing root
2017-05-24 15:46:22 +02:00
David Cassany
435ab2651a Extend --signing-key to Apt package manager
This commit extends support for --siging-key to the Apt package
manager. However it has only been included for the chrooted
operations, as current implementation of the bootstrap procedure does
not provide signature check capabilities.

Related to #342
2017-05-24 13:30:25 +02:00
David Cassany
844640d93a Extend --signing-key option to Yum and Dnf
This commit extends the --signing-key options support to Yum and Dnf
package managers. In addition, signature check for repositories
had to be disabled for Yum and Dnf, as kiwi unrelated issues were
found while testing. Nevertheless, package signature checks are
fully functional.

Related to #342
2017-05-24 13:15:19 +02:00
David Cassany
26995dbe9c Add --signing-key option
This commit adds --signing-key option which sets a key file to import
into the package manager trusted keys database. This commit adds this
flag support only for zypper.

Fixes #342
2017-05-24 13:11:15 +02:00
Marcus Schäfer
3c0029c10f
Don't print warning report
The auto generated xml_parse.py uses the python warnings module
The unit tests uses the coverage module in py.test to create
a report. The latest py.test update now also creates a warnings
report which is unwanted because some of the unit tests
intentionally causes the creation of a warning as the expected
result but we don't want to see that in a py.test warnings
report. Therfore this patch switches off the creation of that
warnings report
2017-05-23 16:55:45 +02:00
Marcus Schäfer
4c4274d1ed
Update manual page of build command
Add information for --allow-existing-root option
2017-05-23 16:35:06 +02:00
Marcus Schäfer
dba6aaecc0 Fixup default behavior of build command
The build command automatically used an existing root tree
from a former build attempt. However this could cause an
inconsistent image if the former build root was not based on
the same image type setup. Thus it is better to allow this
only if the --allow-existing-root option is specified along
with the build command call
2017-05-23 16:32:41 +02:00
Marcus Schäfer
6faee70731
Fixed alpha sorting of options 2017-05-23 16:29:11 +02:00
Marcus Schäfer
eac6d237d3 Merge pull request #344 from SUSE/clear_cache_option
Added --clear-cache option
2017-05-23 14:55:00 +02:00
Marcus Schäfer
4461f6c498
Complete zypper cache cleanup
also the raw and solv cache needs to be deleted
2017-05-23 11:04:50 +02:00
Marcus Schäfer
542cf17836
Update manual pages
Add information and use case for --clear-cache option
2017-05-22 17:59:58 +02:00
Marcus Schäfer
c368c2731c
Added --clear-cache option
The system prepare and build commands now provides the
option --clear-cache which deletes all cache data
associated with the repositories to build the image.
This Fixes #341
2017-05-22 17:57:57 +02:00
Marcus Schäfer
1e74f925e0 Merge pull request #343 from SUSE/dracut_compression
Let dracut create a compressed initrd
2017-05-22 15:33:09 +02:00
Marcus Schäfer
402ff5ec43
Let dracut create a compressed initrd
dracut was called in a way to create an uncompressed initrd archive
and kiwi later runs the xz compression on it. That way the default
compression parameters used by dracut get lost. Fixes #335
2017-05-22 11:59:24 +02:00
Marcus Schäfer
86e6de1739 Merge pull request #336 from SUSE/iso_boot_load_size
Fixup boot-load-size for efi loader in iso
2017-05-22 10:10:59 +02:00
Marcus Schäfer
a080116b93 Merge pull request #338 from SUSE/improve_check_signatures
Improve rpm-check-signatures support
2017-05-22 08:59:15 +02:00
Marcus Schäfer
9cb7390af0 Fixup boot-load-size for efi loader in iso
Pass the real boot-load-size of the used loader as number
of 512byte blocks to the iso creation call. Related to
(bsc#939456)
2017-05-19 17:12:57 +02:00
David Cassany
2b40351550 Improve rpm-check-signatures support
This commit ensures the signatures are checked for both: the
repository and the rpm package. It applies for zypper, dnf and
yum package managers.
2017-05-19 17:04:59 +02:00
Marcus Schäfer
2c3c93f9bf Merge pull request #334 from SUSE/doc_rework_building_virtual_disk_image
Doc rework building virtual disk image
2017-05-19 15:55:09 +02:00
Marcus Schäfer
4a9ed6c766 Update documentation to meet review results 2017-05-19 10:49:29 +02:00
Marcus Schäfer
4a41806a3d Added GCE image primary setup information 2017-05-18 16:37:56 +02:00
Marcus Schäfer
41a2ebbe8e Added Azure image primary setup information 2017-05-18 16:37:56 +02:00
Marcus Schäfer
60e3347162 Added EC2 image primary setup information 2017-05-18 16:37:56 +02:00
Marcus Schäfer
f216ba022a rework building virtual disk image chapter
Adapt to style as used in the live iso chapter and add
references to low level topics regarding the setup of
the image to work in the public cloud. Related to #323
2017-05-18 16:37:30 +02:00
Marcus Schäfer
0c4ebf657e
Map partition ID's from sgdisk to lowercase 2017-05-18 14:42:14 +02:00
Marcus Schäfer
8c7e78ebf8 Merge pull request #333 from SUSE/fix_oem_partition_install
Fix oem partition install
2017-05-18 14:18:39 +02:00
David Cassany
070f88d26d Get the first two characters of the gdisk partition code output
According to the gdisk documentation the gdisk maps the partitions IDs
to the MBR codes, but they are multiplied by 0x0100 in hexa. Meaning
0x8300 code is equivalent to 0x83 in MBR. This commit only considers
the first two characters of the sgdisk partition code output. With this
change the partition types are comparable, regardless of using MBR or
GPT.
2017-05-17 17:44:51 +02:00
David Cassany
54d9bb9279 Fixes OEM deployments on a free partition, bnc#1039469
This commit updates the boot code for oem images. In case
oem-partition-install flag was set, the boot code was not capable
to find an appropriate partition due to not attaching properly the
raw image as a loopback device. KIWI was calling 'losetup' command
with wrong arguments.

Fixes bnc#1039469
2017-05-17 15:15:12 +02:00
Marcus Schäfer
de48b23caa Bump version: 9.6.1 → 9.6.2 2017-05-17 10:52:18 +02:00
Marcus Schäfer
8d2981c98a Merge pull request #332 from Conan-Kudo/yumdeprecated
Use 'yum-deprecated' if it exists when using Yum
2017-05-17 10:51:45 +02:00
Neal Gompa
7191e644c8 Use 'yum-deprecated' if it exists when using Yum
On Fedora and Mageia systems, the Yum package manager binary is named
'yum-deprecated', and 'yum' redirects to DNF. This is a problem for
being able to build images of Linux systems that use Yum as its package
manager, like RHEL/CentOS 7.

So, in order to ensure we use the right package manager, we check for
the 'yum-deprecated' binary and use it if it exists.
2017-05-16 13:09:48 -04:00
Marcus Schäfer
a0e554076c Merge pull request #326 from SUSE/doc_redesign_liveiso
Revised edition of Live ISO building chapter
2017-05-16 16:55:50 +02:00
Marcus Schäfer
366ffd424a
Restructure low level topic (iso_to_usb)
The low level topic references information from the base
topic. In this case the name of the previously built image.
I think we should provide information on each low level
topic which references information from a base topic.
2017-05-16 09:47:52 +02:00
Marcus Schäfer
0ab5588dee Merge pull request #331 from SUSE/fix_for_check_signatures
Handle rpm-check-signatures flag for each package manager
2017-05-16 09:16:36 +02:00
David Cassany
475a5ab526 Handle rpm-check-signatures flag for each package manager
This commit adds support for the rpm-check-signatures flag, which
sets the package manager to verify or not each package signature.
By default KIWI assumes no gpg checks are done.
2017-05-15 19:38:53 +02:00