Bug 531407 - --encrypted option does not work with pv in kickstart script
Summary: --encrypted option does not work with pv in kickstart script
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: NeedsRetesting
Depends On: 510545
Blocks: F12Target
TreeView+ depends on / blocked
 
Reported: 2009-10-28 04:59 UTC by Huzaifa S. Sidhpurwala
Modified: 2010-01-07 01:42 UTC (History)
5 users (show)

Fixed In Version: anaconda-12.40-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-07 01:42:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Huzaifa S. Sidhpurwala 2009-10-28 04:59:46 UTC
I am using the following options 

--encrypted --passphrase=foo --escrowcert http://hostname/cert.crt --backuppassphrase

When i use this with autopart in the kickstart it works and the pv is encrypted.
But when i use this with 
part --grow --size=1 pv.20 as

"part --grow --size=1 pv.20 --encrypted --passphrase=foo --escrowcert http://hostname/cert.crt --backuppassphrase"

it freaks out, with the following back trace.

File "/usr/lib/anaconda/kickstart.py", Line 751 in parse
if pd.preexist:
    AttributeError: "F12_PartData" object has not attribute preexist


I am using F12-beta

Comment 1 Miloslav Trmač 2009-10-28 05:19:54 UTC
I have submitted something like the following:

@@ -749,7 +749,7 @@ class Partition(commands.partition.F12_Partition):
                storage.encryptionPassphrase = pd.passphrase
 
             cert = getEscrowCertificate(self.handler.anaconda, pd.escrowcert)
-            if pd.preexist:
+            if pd.onPart:
                 luksformat = format
                 device.format = getFormat("luks", passphrase=pd.passphrase, device=device.path,
                                           escrow_cert=cert,


as part of the escrow patches in #510545, but it was dropped - see comment #11 in that bug.

Comment 2 Adam Williamson 2009-10-28 21:08:52 UTC
A build of anaconda 12.40, which should address this issue, is currently in progress: http://koji.fedoraproject.org/koji/buildinfo?buildID=138787

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 3 Adam Williamson 2009-10-29 17:50:06 UTC
anaconda 12.41 was tagged into Rawhide today. a net install from a Rawhide tree updated to today's packages, or a nightly build dated 20091029 or later, should have this fix (make sure the installer says anaconda version 12.41). if you could confirm the fix, that'd be great. thanks.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Adam Williamson 2009-10-30 16:50:27 UTC
Discussed at the blocker bug meeting today. We agreed this isn't really a blocker, so dropping to target, but the fix stays in since it's in already. If it's not fully fixed, though, we won't block release.

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers


Note You need to log in before you can comment on or make changes to this bug.