[Bug 584555] New: cryptsetup fails if keyfile is missing even if precheck= creates the keyfile
http://bugzilla.novell.com/show_bug.cgi?id=584555 http://bugzilla.novell.com/show_bug.cgi?id=584555#c0 Summary: cryptsetup fails if keyfile is missing even if precheck= creates the keyfile Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: olaf@aepfle.de QAContact: qa@suse.de Found By: Outsourced Testing Blocker: --- cryptsetup fails in boot.crypto-early with /etc/crypttab like this: somename /dev/somedevice /somekeyfile precheck=somescript.sh If somescript.sh does create /somekeyfile, cryptsetup does fail anyway because it checks if /somekeyfile exists before the precheck script actually runs. /somekeyfile is supposed to be used later for other purposes in my environment. I made this simple change to workaround this bug in boot.crypto.functions. The code should be rearranged to run the script before the existance of /somekeyfile is checked. --- boot.crypto.functions +++ /lib/cryptsetup/boot.crypto.functions @@ -624,8 +624,8 @@ # make sure the keyfile exists if ! test -e "$keyfile"; then report 5 "$name: $keyfile does not exist" - failed=1 - continue +# failed=1 +# continue fi if test -n "$halgo" -o -n "$pseed" -o -n "$itercountk"; then echo "${extd}Warning: hash, pseed and itercountk options are ignored when using a key file${norm}" -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584555
http://bugzilla.novell.com/show_bug.cgi?id=584555#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=584555
http://bugzilla.novell.com/show_bug.cgi?id=584555#c1
Ludwig Nussel
participants (1)
-
bugzilla_noreply@novell.com