Commit Graph

18 Commits

Author SHA1 Message Date
Marcus Schäfer
6cc0b2085d Flake cleanup for unit tests 2017-03-07 13:03:10 +01:00
Marcus Schäfer
5c5fb719ea
Apply volume attributes for btrfs and lvm
The chattr utility is used to apply file attributes
So far only the no-copy-on-write attribute can be
specified in a volume setup. If further attributes
are needed they will be added on demand
2017-01-20 16:00:59 +01:00
Marcus Schäfer
116a69310a Add set_property_readonly_root for volume manager
The custom option root_is_readonly_snapshot is evaluated
for the method set_property_readonly_root(). If set and
the root filesystem has been installed into a btrfs snapshot
the filesystem is turned into read-only mode
2016-10-06 09:30:44 +02:00
Marcus Schäfer
bb26fc71b7 Call grub2-install as chroot operation
In addition to the chrooted call make sure all volumes from
the volume manager (if used) are mounted at call time
2016-09-27 15:40:43 +02:00
Marcus Schäfer
72341dbfb0
Mount boot volumes on grub install
If there are volumes below /boot they need to be mounted before
grub2-install / shim-install is called in order to make sure all
data is available in the volume
2016-09-26 16:53:11 +02:00
Marcus Schäfer
cdf9e47d3a
Added get_fstab to volume manager interface
The volume manager interface should allow to provide
fstab entries for the volumes it manages
2016-09-20 21:28:25 +02:00
Marcus Schäfer
27d13c5553
Refactor custom_args handling for VolumeManager class
Allow for two elements fs_create_options and fs_mount_options
in a VolumeManager instance and pass along the information
to the FileSystem and MountManager instances
2016-04-26 11:53:19 +02:00
Marcus Schäfer
fc4b8d6d7a
Update volume_manager inline API documentation
References #49
2016-04-15 14:41:16 +02: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
80bb7c5e78 Consolidate all rsync calls into DataSync class 2016-03-07 12:11:15 +01:00
Marcus Schäfer
f5da3dd117
Release mount after data sync for volume managers 2016-03-06 14:38:39 +01:00
Marcus Schäfer
ec92ffdba1
Fixed LVM volume setup for oem image type
For the oem image type the requested volume sizes are applied
on first boot of the appliance. Therefore inside of the image
the volumes only needs to be created with their minimum required
size
2016-03-04 17:20:48 +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
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
Marcus Schäfer
40e6308aa9 Port application from python 2.7 to 3.4
For new applications like this kiwi version and its use cases
it is better to base it on a more recent python version
2016-02-17 22:38:38 +01:00
Marcus Schäfer
febd69ec0f Refactor variable name for root directory
If it is clear the source directory is the root directory of
the image the variable should be named root_dir not source_dir
2016-01-19 11:15:18 +01:00
Marcus Schäfer
ecfa3136b5
pep8 fixes 2016-01-12 23:08:51 +01:00
Marcus Schäfer
09daca60c0
KIWI - appliance builder next generation
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi
2015-12-05 16:17:10 +01:00