Skip to content

Commit

Permalink
Release 0.6: Don't raise exception when /etc/crypttab doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jul 3, 2018
1 parent 208fe5d commit 6a44e4a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,34 @@ to `semantic versioning`_.
.. _Keep a Changelog: http://keepachangelog.com/
.. _semantic versioning: http://semver.org/

`Release 0.6`_ (2018-07-03)
---------------------------

- **Bug fix:** Don't raise an exception in ``parse_crypttab()`` when
``/etc/crypttab`` doesn't exist. I ran into the exception that used to be
raised when I ran ``upgrade-remote-system`` (in debuntu-tools_) against a
server without any encrypted filesystems and was unpleasantly surprised that
my "upgrade && reboot && cleanup kernels" had aborted halfway 😇.

- **Miscellaneous changes:** (lots of them)

- Added this changelog and restructured the documentation.
- Integrated ``property_manager.sphinx`` to improve documentation.
- Minor changes to the ``setup.py`` script:

- Added the ``license='MIT'`` key.
- Changed alpha trove classifier to beta.
- Added some additional trove classifiers.

- Added usage messages of ``cryptdisks-start-fallback`` and
``cryptdisks-stop-fallback`` to readme.
- Changed ``MANIFEST.in`` to include documentation in source distributions.
- Minor improvements to documentation of ``linux_utils.cli`` module.
- Bumped copyright to 2018.


.. _Release 0.6: https://github.com/xolox/python-linux-utils/compare/0.5...0.6

`Release 0.5`_ (2017-06-24)
---------------------------

Expand Down
4 changes: 2 additions & 2 deletions linux_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# linux-utils: Linux system administration tools for Python.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: June 24, 2017
# Last Change: July 3, 2018
# URL: https://linux-utils.readthedocs.io

"""Linux system administration tools for Python."""
Expand All @@ -24,7 +24,7 @@
'coerce_size',
)

__version__ = '0.5'
__version__ = '0.6'
"""Semi-standard module versioning."""


Expand Down
9 changes: 9 additions & 0 deletions linux_utils/crypttab.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ def parse_crypttab(filename='/etc/crypttab', context=None):
key_file='none',
options=['luks', 'discard'],
)
.. versionchanged:: 0.6
It is not an error when `filename` doesn't exist, because of my
experience that ``/etc/crypttab`` doesn't exist in default Debian and
Ubuntu installations (unless that system was specifically set up with
root disk encryption using the installation wizard). This used to raise
an exception, but this was changed in `release 0.6`_.
.. _release 0.6: https://linux-utils.readthedocs.io/changelog.html#release-0-6-2018-07-03
"""
context = coerce_context(context)
if context.is_file(filename):
Expand Down

0 comments on commit 6a44e4a

Please sign in to comment.