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 697944 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]
Add a JobTimeoutSec=0 for the dev-mapper device unit file in the cryptsetup generator
1000-Add-a-JobTimeoutSec-0-for-the-dev-mapper-device-unit.patch (text/plain), 1.77 KB, created by
Fabrice Bellet
on 2013-02-15 18:46:46 UTC
(
hide
)
Description:
Add a JobTimeoutSec=0 for the dev-mapper device unit file in the cryptsetup generator
Filename:
MIME Type:
Creator:
Fabrice Bellet
Created:
2013-02-15 18:46:46 UTC
Size:
1.77 KB
patch
obsolete
>From 6503fe9cf62c99c792f206c98677c1af49d5d20e Mon Sep 17 00:00:00 2001 >From: Fabrice Bellet <fabrice@bellet.info> >Date: Wed, 13 Feb 2013 17:46:27 +0100 >Subject: [PATCH 1000/1001] Add a JobTimeoutSec=0 for the dev-mapper device > unit file in the cryptsetup generator > >--- > src/cryptsetup/cryptsetup-generator.c | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > >diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c >index 6e7b707..d1cd1cd 100644 >--- a/src/cryptsetup/cryptsetup-generator.c >+++ b/src/cryptsetup/cryptsetup-generator.c >@@ -73,6 +73,7 @@ static int create_disk( > char *p = NULL, *n = NULL, *d = NULL, *u = NULL, *from = NULL, *to = NULL, *e = NULL; > int r; > FILE *f = NULL; >+ FILE *fd = NULL; > bool noauto, nofail; > > assert(name); >@@ -220,6 +221,35 @@ static int create_disk( > goto fail; > } > >+ free (p); >+ p = strjoin(arg_dest, "/dev-mapper-", e, ".device", NULL); >+ >+ if (!p) { >+ r = log_oom(); >+ goto fail; >+ >+ } >+ >+ fd = fopen(p, "wxe"); >+ if (!fd) { >+ r = -errno; >+ log_error("Failed to create unit file %s: %m", p); >+ goto fail; >+ } >+ >+ fprintf(fd, >+ "# Automatically generated by systemd-cryptsetup-generator\n\n" >+ "[Unit]\n" >+ "JobTimeoutSec=0\n"); >+ >+ fflush(fd); >+ >+ if (ferror(fd)) { >+ r = -errno; >+ log_error("Failed to write file %s: %m", p); >+ goto fail; >+ } >+ > r = 0; > > fail: >@@ -234,6 +264,9 @@ fail: > if (f) > fclose(f); > >+ if (fd) >+ fclose(fd); >+ > return r; > } > >-- >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