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 310812 Details for
Bug 449830
backport filesystem encryption
[?]
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]
support block device encryption
pykickstart-0.43-cryptodev.patch (text/plain), 3.01 KB, created by
David Lehman
on 2008-07-02 15:56:19 UTC
(
hide
)
Description:
support block device encryption
Filename:
MIME Type:
Creator:
David Lehman
Created:
2008-07-02 15:56:19 UTC
Size:
3.01 KB
patch
obsolete
>diff -up pykickstart-0.43/pykickstart/writer.py.orig pykickstart-0.43/pykickstart/writer.py >--- pykickstart-0.43/pykickstart/writer.py.orig 2008-07-02 10:53:03.000000000 -0500 >+++ pykickstart-0.43/pykickstart/writer.py 2008-07-02 10:53:13.000000000 -0500 >@@ -78,8 +78,15 @@ class KickstartWriter: > return retval > > def doAutoPart(self): >+ retval = "" > if self.ksdata.autopart: >- return "autopart" >+ retval = "autopart" >+ >+ if self.ksdata.encrypted: >+ retval = retval + " --encrypted" >+ retval = retval + " --passphrase=\"%s\"" % (self.ksdata.passphrase,) >+ >+ return retval > > def doAutoStep(self): > if self.ksdata.autostep["autoscreenshot"]: >diff -up pykickstart-0.43/pykickstart/parser.py.orig pykickstart-0.43/pykickstart/parser.py >--- pykickstart-0.43/pykickstart/parser.py.orig 2008-07-02 10:52:55.000000000 -0500 >+++ pykickstart-0.43/pykickstart/parser.py 2008-07-02 10:53:13.000000000 -0500 >@@ -301,10 +301,15 @@ class KickstartHandlers: > self.ksdata.authconfig = string.join(args) > > def doAutoPart(self, args): >- if len(args) > 0: >- raise KickstartValueError, formatErrorMsg(self.lineno, msg=_("Command %s does not take any arguments") % "autopart") >+ op = KSOptionParser(lineno=self.lineno) >+ op.add_option("--encrypted", dest="encrypted", action="store_true", >+ default=False) >+ op.add_option("--passphrase", dest="passphrase") > >+ (opts, extra) = op.parse_args(args=args) > self.ksdata.autopart = True >+ self.ksdata.encrypted = opts.encrypted >+ self.ksdata.passphrase = opts.passphrase > > def doAutoStep(self, args): > op = KSOptionParser(lineno=self.lineno) >@@ -504,6 +509,9 @@ class KickstartHandlers: > op.add_option("--useexisting", dest="preexist", action="store_true", > default=False) > op.add_option("--vgname", dest="vgname", required=1) >+ op.add_option("--encrypted", dest="encrypted", action="store_true", >+ default=False) >+ op.add_option("--passphrase", dest="passphrase") > > (opts, extra) = op.parse_args(args=args) > >@@ -691,6 +699,9 @@ class KickstartHandlers: > nargs=1) > op.add_option("--start", dest="start", action="store", type="int", > nargs=1) >+ op.add_option("--encrypted", dest="encrypted", action="store_true", >+ default=False) >+ op.add_option("--passphrase", dest="passphrase") > > (opts, extra) = op.parse_args(args=args) > >@@ -771,6 +782,9 @@ class KickstartHandlers: > nargs=1, default=0) > op.add_option("--useexisting", dest="preexist", action="store_true", > default=False) >+ op.add_option("--encrypted", dest="encrypted", action="store_true", >+ default=False) >+ op.add_option("--passphrase", dest="passphrase") > > (opts, extra) = op.parse_args(args=args) >
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 449830
: 310812