Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
systemd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
steam
systemd
Commits
17fa2939
Commit
17fa2939
authored
Nov 15, 2015
by
Michael Biebl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't timeout after 90 seconds when no password was entered for cryptsetup devices
Closes: #802897
parent
054e994d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
debian/changelog
debian/changelog
+2
-0
debian/patches/cryptsetup-Fix-timeout-on-dm-device.patch
debian/patches/cryptsetup-Fix-timeout-on-dm-device.patch
+33
-0
debian/patches/series
debian/patches/series
+1
-0
No files found.
debian/changelog
View file @
17fa2939
systemd
(
215
-
17
+
deb8u3
)
UNRELEASED
;
urgency
=
medium
*
Fix
namespace
breakage
due
to
incorrect
path
sorting
.
(
Closes
:
#
787758
)
*
Don
't timeout after 90 seconds when no password was entered for cryptsetup
devices. (Closes: #802897)
-- Michael Biebl <biebl@debian.org> Mon, 16 Nov 2015 17:49:20 +0100
...
...
debian/patches/cryptsetup-Fix-timeout-on-dm-device.patch
0 → 100644
View file @
17fa2939
From: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org>
Date: Sun, 28 Sep 2014 03:05:41 +0200
Subject: cryptsetup: Fix timeout on dm device.
Fix a bug in systemd-cryptsetup-generator which caused the drop-in
setting the job timeout for the dm device unit to be written with a
name different than the unit name.
https://bugs.freedesktop.org/show_bug.cgi?id=84409
(cherry-picked from commit a6fb0dc138d4e7895f8e607493279dbe4df117a1)
---
src/cryptsetup/cryptsetup-generator.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index 3233e15..de91a6f 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -246,7 +246,12 @@
static int create_disk(
}
if (!noauto && !nofail) {
- r = write_drop_in(arg_dest, name, 90, "device-timeout",
+ _cleanup_free_ char *dmname;
+ dmname = strjoin("dev-mapper-", e, ".device", NULL);
+ if (!dmname)
+ return log_oom();
+
+ r = write_drop_in(arg_dest, dmname, 90, "device-timeout",
"# Automatically generated by systemd-cryptsetup-generator \n\n"
"[Unit]\nJobTimeoutSec=0");
if (r < 0) {
debian/patches/series
View file @
17fa2939
...
...
@@ -152,6 +152,7 @@ manager-do-not-print-anything-while-passwords-are-be.patch
manager-pass-correct-errno-to-strerror.patch
shared-add-path_compare-an-ordering-path-comparison.patch
core-namespace-fix-path-sorting.patch
cryptsetup-Fix-timeout-on-dm-device.patch
## Debian specific patches:
Add-back-support-for-Debian-specific-config-files.patch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment