-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '3.2-devel' into 3.2-release
- Loading branch information
Showing
24 changed files
with
336 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "po"] | ||
path = po | ||
url = https://github.com/storaged-project/blivet-weblate.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include COPYING ChangeLog Makefile python-blivet.spec release_notes.rst | ||
include README.md COPYING ChangeLog Makefile python-blivet.spec release_notes.rst | ||
recursive-include po *.mo *.po *.pot Makefile | ||
recursive-include examples *.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Blivet is a python module for system storage configuration. | ||
|
||
### CI status | ||
|
||
<img alt="CI status" src="https://fedorapeople.org/groups/storage_apis/statuses/blivet-master.svg" width="100%" height="300ex" /> | ||
|
||
### Licence | ||
|
||
See [COPYING](https://github.com/storaged-project/blivet/blob/master/COPYING) | ||
|
||
### Installation | ||
|
||
#### From Fedora repositories | ||
|
||
Blivet is available in Fedora repositories. You can install it using | ||
|
||
# dnf install python3-blivet | ||
|
||
#### Daily builds (for Fedora) | ||
|
||
Daily builds of Blivet are available in `@storage/blivet-daily` Copr repository. | ||
You can enable it using | ||
|
||
# dnf copr enable @storage/blivet-daily | ||
|
||
Daily builds of _libblockdev_ and _libbytesize_ are also in this repo. | ||
|
||
#### OBS repository (for Ubuntu and Debian) | ||
|
||
Packages for Debian (testing and unstable) and Ubuntu (19.04 and newer) are available through the Open Build Service. | ||
Instructions for adding the repository are available [here](https://software.opensuse.org/download.html?project=home:vtrefny&package=python3-blivet). | ||
|
||
#### PyPI | ||
|
||
Blivet is also available through the [Python Package Index](https://pypi.org/project/blivet/). | ||
You can install it using | ||
|
||
$ pip3 install blivet | ||
|
||
Blivet depends on some C libraries that are not available on PyPI so you need to install these manually. | ||
|
||
The main dependencies include [libblockdev](https://github.com/storaged-project/libblockdev), [libbytesize](https://github.com/storaged-project/libbytesize), parted and their Python bindings. | ||
These libraries should be available on most distributions in the standard repositories. | ||
|
||
To install these dependencies use following commands: | ||
|
||
* On Fedora and RHEL/CentOS based distributions: | ||
|
||
# dnf install python3-blockdev libblockdev-plugins-all python3-bytesize libbytesize python3-pyparted parted libselinux-python3 | ||
* On Debian and Ubuntu based distributions: | ||
|
||
# apt-get install python3-blockdev python3-bytesize python3-parted python3-selinux gir1.2-blockdev-2.0 libblockdev-lvm2 libblockdev-btrfs2 libblockdev-swap2 libblockdev-loop2 libblockdev-crypto2 libblockdev-mpath2 libblockdev-dm2 libblockdev-mdraid2 libblockdev-nvdimm2 | ||
|
||
### Development | ||
|
||
See [CONTRIBUTING](https://github.com/storaged-project/blivet/blob/master/CONTRIBUTING) | ||
|
||
Developer documentation is available on our [website](http://storaged.org/blivet/docs/) or on [Read the Docs](https://blivet.readthedocs.io/en/latest/). | ||
|
||
Additional information about the release process, roadmap and other development-related materials are also available in the [GitHub Wiki](https://github.com/storaged-project/blivet/wiki). | ||
|
||
### Localization | ||
|
||
[![Translation](https://translate.fedoraproject.org/widgets/blivet/-/blivet-master/287x66-grey.png)](https://translate.fedoraproject.org/engage/blivet/?utm_source=widget) | ||
|
||
### Bug reporting | ||
|
||
Bugs should be reported to [bugzilla.redhat.com](https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=python-blivet). | ||
|
||
You can also report bug using the [GitHub issues](https://github.com/storaged-project/blivet/issues). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
# Red Hat Author(s): Dave Lehman <[email protected]> | ||
# | ||
|
||
import copy | ||
|
||
from six import add_metaclass | ||
|
||
from . import util | ||
|
@@ -670,6 +672,8 @@ def execute(self, callbacks=None): | |
msg = _("Created %(type)s on %(device)s") % {"type": self.device.format.type, "device": self.device.path} | ||
callbacks.create_format_post(CreateFormatPostData(msg)) | ||
|
||
self.device.original_format = copy.deepcopy(self.device.format) | ||
|
||
def cancel(self): | ||
if not self._applied: | ||
return | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.