Commit Graph

367 Commits

Author SHA1 Message Date
Marcus Schäfer
49aaa59bf0
Preserve extended attributes in tar archives
tar doesn't preserve extended attributes by default, causing Docker
images to not have any correct set-capabilities bits set on binaries
such as ping. This is fixed by adding the --xattrs flag to the tar
command
2016-03-04 10:01:53 +01:00
Marcus Schäfer
3c3ad79cfd
Sort output from helper/kiwi-boot-packages 2016-03-03 11:20:15 +01:00
Marcus Schäfer
a2bfb6c48d
Fixed gce disk format
The order of the files in the tarball is important. The first
entry must be the manifest.json followed by disk.raw. In addition
the style of the manifest.json has been adapted too. A space after
colon seems to be required for gce to accept the data
2016-03-03 11:05:42 +01:00
Marcus Schäfer
00fb222bc3
Fixed kernel names for dracut initrd system
If dracut is used as initrd system we should not use the
kiwi one shot names linux.vmx, initrd.vmx but stick with
the official naming convention for kernel and initrd which
is kernel-<version>, initrd-<version>
2016-03-02 21:38:02 +01:00
Marcus Schäfer
0597bee5ba
Skip local repos if they don't exist
Instead of raising an exception if a local repository does
not exist, we will continue with a warning message. This is
needed for a flawless integration with the buildservice.
Inside of a buildservice environment only those repos are
setup from which packages were taken. Thus it can happen that
a configured repository does not exist in the buildservice
build environment if the resolver would not take any package
from this repository. kiwi should not fail to build such an
image
2016-03-02 21:35:14 +01:00
Marcus Schäfer
ecc351a6b9
Avoid lvcreate to ask for wiping swap signature
When kiwi creates the logical volume for the swap space
and there is already a swap signature at the place on
disk, lvm stops and asks what to do with it. This should
be generally avoided at that stage in the boot process
Fixes (bnc#968601)
2016-03-01 12:09:29 +01:00
Marcus Schäfer
0fbaf0fdc3
Calculate checksum in chunks 2016-03-01 11:34:03 +01:00
Marcus Schäfer
dfd9fea410
Don't prevent an oem image from a custom disk size
An oem disk ist a self expandable disk and thus it normally
doesn't make sense to specify a disk size for it. However there
are filesystems like btrfs which are very hard to precalculate
a minimum required disk space for X bytes of data. In this
situation a user should have the opportunity to specify a
size
2016-02-29 21:36:55 +01:00
Marcus Schäfer
48ca3ae500
Don't call dracut in background from kiwi initrd
This was useful to speedup the boot but opens a potential
race condition if a reboot happens while dracut is still
processing. With the last extension to use dracut as initrd
system people now have the choice what fits their needs
better and this allows us to revert the background call
2016-02-29 21:23:31 +01:00
Marcus Schäfer
d0fa83681f
Added support for using dracut initrd
As of today only the kiwi initrd could be used with an image
build. This commit adds a new initrd_system attribute and
allows to select between kiwi and dracut as initrd system.
Please note the dracut initrd does not support all features
of the kiwi initrd. This fixes #25
2016-02-29 20:52:25 +01:00
Marcus Schäfer
45ae3bda45
Add a feature drop list to the README 2016-02-29 15:03:28 +01:00
Marcus Schäfer
242376b57a
update MANIFEST.in due to structure changes 2016-02-29 14:47:35 +01:00
Marcus Schäfer
61fe301ad9
Update README
Use the real executable name for the documentation
2016-02-29 11:57:55 +01:00
Marcus Schäfer
f644d39a2f
Continue Refactor into subpackage
storage operations should have their own namespace
2016-02-29 11:37:27 +01:00
Marcus Schäfer
10a036932f
Continue Refactor into subpackage
container and container_setup should have their own namespace
2016-02-29 11:02:58 +01:00
Marcus Schäfer
043efcbbe9
Continue Refactor into subpackage
disk namespace init is not a factory, thus the Disk class should
have its own namespace. We choose disk.storage
2016-02-29 10:43:28 +01:00
Marcus Schäfer
b43a12bd83
Continue Refactor into subpackage
rename dformat to subformat
2016-02-29 10:38:08 +01:00
Marcus Schäfer
1e21da7201
Continue Refactor into subpackage
The builder classes should have their own namespace
2016-02-29 10:32:01 +01:00
Marcus Schäfer
82d36ab060
Fixed update alternative setup for kiwi completion
kiwi itself is provided as update alternative for kiwi-py3
Thus the completion should be based on kiwi-py3
2016-02-29 09:29:20 +01:00
Marcus Schäfer
81fd30897d Merge pull request #34 from tomschr/issue-23
Refactor into subpackage to fix #23
2016-02-29 09:24:48 +01:00
Marcus Schäfer
5462561c08 Merge pull request #33 from tomschr/fix-tox
Fix small Tox issues
2016-02-29 09:12:21 +01:00
Marcus Schäfer
623014ac58 Merge pull request #32 from tomschr/readme-tox
Enhance README: improve Contributiong, add new Developing section
2016-02-29 09:11:39 +01:00
Thomas Schraitle
45bc5a03a7 Refactor into subpackage to fix #23
Codecoverage are 100% and tests are green

Changes:
* Refactor archive_*.py -> archive subpackage
* Refactor partitioner_*.py -> partitioner subpackage
* Refactor package_manager_*.py -> package_manager/ subpackage
* Refactor bootloader_config*.py -> bootloader/config/ subpackage
* Refactor bootloader_template*.py -> bootloader/template/ subpackage
* Refactor bootloader_install*.py -> bootloader/install/ subpackage
* Refactor repository*.py -> repository/ subpackage
* Refactor filesystem*.py -> filesystem/ subpackage
* Refactor dist_*.py -> dist/dformat subpackage
  The name `dformat` as package name is needed to avoid any name
  conflicts with the built-in function `format`.
* Refactor volume_manager*.py -> volume_manager/ subpackage
* Refactor boot_image*.py -> boot/image/ subpackage
2016-02-27 10:31:31 +01:00
Thomas Schraitle
1ea142f2eb Remove unecessary Travis requirements 2016-02-26 20:00:40 +01:00
Thomas Schraitle
18b5a0f04b Fix check target
Didn't have a basepython line, fixed strange tox error
2016-02-26 19:58:30 +01:00
Thomas Schraitle
98f2cd47c6 Enhanced Contributing, add new Developing section
* Create a procedure in section Contributing
* Add new Developing section to describe how to use tox
2016-02-26 19:52:52 +01:00
Marcus Schäfer
5c6bcd50ac Merge pull request #30 from tomschr/tox-and-travis
Use tox in .travis.yml, remove .travis.script
2016-02-26 17:20:40 +01:00
Marcus Schäfer
0d38e7e199
Fixed device map for VolumeManagerBtrfs
The return value from get_device must be a map containing
an instance of a DeviceProvider, not only the DeviceProvider
2016-02-26 17:13:37 +01:00
Marcus Schäfer
04764a42df Refactor use of mount/umount calls
Provide a MountManager class and handle all mount/umount
calls in instances of MountManager
2016-02-26 16:50:31 +01:00
Thomas Schraitle
a888de2b77 Use tox in .travis.yml, remove .travis.script 2016-02-26 11:36:06 +01:00
Marcus Schäfer
31bffb7b3d
Don't write grub.cfg to EFI directory
Originally the file was written there as reference, but nothing
will ever update that file if the real grub configuration changes.
Thus it doesn't make sense to provide this information (bnc#968270)
2016-02-26 09:31:26 +01:00
Marcus Schäfer
147c0706eb
Refactor grub2 bootloader installation
Make use of grub2-install to install the bootloader
2016-02-25 17:18:31 +01:00
Marcus Schäfer
f43546fd59
Changed debug log in case of failed command
Also log the stdout data from a failed command. So far we
expected error data on stderr but there are also commands
which print error messages on stdout. It should us at least
worth a debug message with this information
2016-02-25 10:12:39 +01:00
Marcus Schäfer
9c2b77e0b5
Fixed helper/kiwi-boot-packages
Take care for packages marked for a specific architecture
2016-02-24 12:09:09 +01:00
Marcus Schäfer
066ad4d8de
Delete unused helper/run-pep8 2016-02-24 11:49:31 +01:00
Marcus Schäfer
9e597e6a53
Adapt make flake target to changed tox target 2016-02-24 11:47:21 +01:00
Marcus Schäfer
c046797909 Merge pull request #29 from tomschr/tox-small-fix
Tox Improvements, Part 2
2016-02-24 11:46:03 +01:00
Thomas Schraitle
e48a308228 Add --cover-min-percentage=100 and helper script 2016-02-24 11:38:31 +01:00
Marcus Schäfer
ea4e815eb6
Fixed spec file for kiwi-boot-requires
The meta package for the buildservice has to require
the new python3-kiwi package
2016-02-24 11:28:02 +01:00
Thomas Schraitle
96f52b5b14 Use --cover-min-percentage=100 instead of coverage 2016-02-24 11:22:58 +01:00
Thomas Schraitle
4929c206aa Replace helper/coverage-check with coverage
Use --fail-under=99 option which fails for tests under 100%
2016-02-24 11:11:34 +01:00
Marcus Schäfer
8c8fc6bf87 keep packages in yum cache 2016-02-24 11:00:54 +01:00
Thomas Schraitle
3bcc90ad7a Rename flake -> check, move spell
* Move spell target/step to doc.spell
* Call doc.spell in the doc target/step
* Rename flake to check (to make it independant of any tool)
2016-02-24 10:53:29 +01:00
Marcus Schäfer
5de6fd5781
Spelling fixes 2016-02-24 10:37:00 +01:00
Marcus Schäfer
6e90aeaeeb Merge pull request #27 from tomschr/tox-spell-fix
Tox spell fix
2016-02-24 10:27:00 +01:00
Marcus Schäfer
bd0449bc49 Tox setup updates
Integrate with Makefile, delete pep8 target from Makefile,
use flake8, update travis script, delete coverage reference,
we want 100% anywhere
2016-02-24 10:24:08 +01:00
Marcus Schäfer
a0102cddbf
Fixed raid_device_test
The test did not mock os.path.exists and thus could fail
on systems which uses a raid system
2016-02-24 10:13:43 +01:00
Thomas Schraitle
a3de628ac6 Update word list 2016-02-24 08:24:32 +01:00
Thomas Schraitle
0b751fe513 Remove empty line to avoid error message
Avoid following error message:
   CRITICAL **: enchant_is_title_case: assertion `word && *word' failed
2016-02-23 21:11:33 +01:00
Thomas Schraitle
cb579a822b Activate personal spellchecking dictionary 2016-02-23 20:58:12 +01:00