From owner-freebsd-current@FreeBSD.ORG Sun May 17 13:04:40 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8E72106567A for ; Sun, 17 May 2009 13:04:40 +0000 (UTC) (envelope-from alleepsilonkleinereins@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 5CBD28FC16 for ; Sun, 17 May 2009 13:04:40 +0000 (UTC) (envelope-from alleepsilonkleinereins@gmail.com) Received: by bwz9 with SMTP id 9so2720621bwz.43 for ; Sun, 17 May 2009 06:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=7Ffq42xOb1V4MfH1IaGAKFmdsU0LyW/ot/jkpCoztCM=; b=jM8hLFdECPE6iAOCJo1HZ5F2yX87fNs/S2GptYWoDTjddAW3C61Nn6SoqBMm3RqnfS Z9rG884UpIzp4TmkVjGdGnKeY+SHrALGzqlDJCn+HFmKvaGznkNBScKjqnHfcxN4ulgV n6rayB8y/Op3rZhS93kZCwDZx8mA7beFVgZbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=vtc/HIupijpuptA8dW9kfwCidkqLPYUoLQCuqCZK5C3zsCna+9bc3IZkMk2+NBjLAT GW3T1aqJkoLcp2UPeFahw6Q2rehX7GQmsZUW4YtqTmKExsKhfS6oBTJ4NNAtpA1PLO9H hLm9siDfl38MKs5D6leivbI1LFU3hQ46o/1Ws= Received: by 10.204.67.66 with SMTP id q2mr5510710bki.161.1242563573695; Sun, 17 May 2009 05:32:53 -0700 (PDT) Received: from felix-stolbas-computer.local ([85.13.9.227]) by mx.google.com with ESMTPS id 13sm5436178fks.14.2009.05.17.05.32.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 May 2009 05:32:53 -0700 (PDT) Message-ID: <4A1003EE.5010700@googlemail.com> Date: Sun, 17 May 2009 14:32:46 +0200 From: Felix Stolba User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: FreeBSD Current X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: GELI Passphrase at boottime X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 May 2009 13:04:41 -0000 Hello, I guess this problem has persisted since 6.0 or probably earlier, at least this is where I encountered it first. The geli passphrase prompt (at boottime) doesn't detect keyboard input correctly, sometimes it will detect a key pressed, sometimes it won't etc. I know that disabling kbdmux helped with some people, here it doesn't change geli's behaviour. Also, having different keyboard mapping is out of the question. So, I helped myself with a little script in rc.conf: #!/bin/sh test -e /dev/ad0s2.eli if [ $? -ne 0 ] then geli attach /dev/ad0s2 fi Doing this plus removing the boot flag for the geli device did the trick, all input is detected when asked for passphrase. After being attached, the devices get checked for errors, fragmentation etc. and are mounted correctly as listed in /etc/fstab. Maybe this can help s/o with similiar problems. Felix