Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 697945 Details for
Bug 861123
Please add x-systemd.device-timeout=0 to mount options for encrypted file systems that need a passphrase from the user
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Pass timeout=0 to systemd-cryptsetup in the cryptsetup-generator
1001-Pass-timeout-0-to-systemd-cryptsetup-in-the-cryptset.patch (text/plain), 2.51 KB, created by
Fabrice Bellet
on 2013-02-15 18:47:43 UTC
(
hide
)
Description:
Pass timeout=0 to systemd-cryptsetup in the cryptsetup-generator
Filename:
MIME Type:
Creator:
Fabrice Bellet
Created:
2013-02-15 18:47:43 UTC
Size:
2.51 KB
patch
obsolete
>From af4317fccea08c8bf13f6d04607c75b16c36b705 Mon Sep 17 00:00:00 2001 >From: Fabrice Bellet <fabrice@bellet.info> >Date: Wed, 13 Feb 2013 23:01:42 +0100 >Subject: [PATCH 1001/1001] Pass timeout=0 to systemd-cryptsetup in the > cryptsetup-generator > >--- > src/cryptsetup/cryptsetup-generator.c | 23 ++++++++++++++++++++--- > 1 file changed, 20 insertions(+), 3 deletions(-) > >diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c >index d1cd1cd..c1ddc91 100644 >--- a/src/cryptsetup/cryptsetup-generator.c >+++ b/src/cryptsetup/cryptsetup-generator.c >@@ -53,7 +53,7 @@ static bool has_option(const char *haystack, const char *needle) { > continue; > } > >- if (f[l] != 0 && f[l] != ',') { >+ if (f[l] != 0 && f[l] != ',' && f[l] != '=') { > f++; > continue; > } >@@ -70,7 +70,7 @@ static int create_disk( > const char *password, > const char *options) { > >- char *p = NULL, *n = NULL, *d = NULL, *u = NULL, *from = NULL, *to = NULL, *e = NULL; >+ char *p = NULL, *n = NULL, *d = NULL, *u = NULL, *from = NULL, *to = NULL, *e = NULL, *o = NULL; > int r; > FILE *f = NULL; > FILE *fd = NULL; >@@ -137,6 +137,22 @@ static int create_disk( > else > fputs("Before=local-fs.target\n", f); > >+ if (options && strlen(options)) >+ if (has_option(options, "timeout")) >+ o = strdup (options); >+ else >+ if (streq(options, "none")) >+ o = strdup("timeout=0"); >+ else >+ o = strjoin(options, ",timeout=0", NULL); >+ else >+ o = strdup("timeout=0"); >+ >+ if (!o) { >+ r = log_oom(); >+ goto fail; >+ } >+ > fprintf(f, > "\n[Service]\n" > "Type=oneshot\n" >@@ -144,7 +160,7 @@ static int create_disk( > "TimeoutSec=0\n" /* the binary handles timeouts anyway */ > "ExecStart=" SYSTEMD_CRYPTSETUP_PATH " attach '%s' '%s' '%s' '%s'\n" > "ExecStop=" SYSTEMD_CRYPTSETUP_PATH " detach '%s'\n", >- name, u, strempty(password), strempty(options), >+ name, u, strempty(password), o, > name); > > if (has_option(options, "tmp")) >@@ -253,6 +269,7 @@ static int create_disk( > r = 0; > > fail: >+ free(o); > free(p); > free(n); > free(d); >-- >1.8.1.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 861123
:
629364
|
629475
|
629480
|
629835
|
633012
|
633014
|
633048
|
697944
| 697945