Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#1776408) rework how we log about LUKS activation failures #52

Merged
merged 4 commits into from Dec 18, 2019

Conversation

dtardon
Copy link
Member

@dtardon dtardon commented Dec 12, 2019

No description provided.

medhefgo and others added 4 commits December 12, 2019 13:18
…bug()

This makes sure that errors reported by libcryptsetup are shown to the
user instead of getting swallowed up by log_debug().

(cherry picked from commit aa2cc00)

Resolves: #1776408
(cherry picked from commit b7a0fea)

Related: #1776408
(cherry picked from commit 44ce425)

Related: #1776408
First of all let's always log where the errors happen, and not in an
upper stackframe, in all cases. Previously we'd do this somethis one way
and sometimes another, which resulted in sometimes duplicate logging and
sometimes none.

When we cannot activate something due to bad password the kernel gives
us EPERM. Let's uniformly return this EAGAIN, so tha the next password
is tried. (previously this was done in most cases but not in all)

When we get EPERM let's also explicitly indicate that this probably
means the password is simply wrong.

Fixes: #11498
(cherry picked from commit 6f177c7)

Related: #1776408
@systemd-rhel-bot systemd-rhel-bot added pr/needs-ci Formerly needs-ci pr/needs-review Formerly needs-review labels Dec 12, 2019
@systemd-rhel-bot systemd-rhel-bot changed the title rework how we log about LUKS activation failures (#1776408) rework how we log about LUKS activation failures Dec 12, 2019
@systemd-rhel-bot systemd-rhel-bot added tracker/unapproved Formerly needs-acks and removed pr/needs-ci Formerly needs-ci labels Dec 12, 2019
@rmetrich
Copy link
Contributor

Thanks @dtardon

Copy link
Contributor

@jsynacek jsynacek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@systemd-rhel-bot systemd-rhel-bot added needs-itr and removed pr/needs-review Formerly needs-review tracker/unapproved Formerly needs-acks needs-itr labels Dec 18, 2019
@systemd-rhel-bot systemd-rhel-bot merged commit 966ecf0 into redhat-plumbers:master Dec 18, 2019
@dtardon dtardon deleted the bz1776408-luks-error branch December 18, 2019 12:31
@mergify mergify bot added the pr/needs-ci Formerly needs-ci label Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/needs-ci Formerly needs-ci released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants