From owner-freebsd-current@FreeBSD.ORG Sun May 17 13:48:48 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 9C3851065672 for ; Sun, 17 May 2009 13:48:48 +0000 (UTC) (envelope-from army.of.root@googlemail.com) Received: from mail-fx0-f216.google.com (mail-fx0-f216.google.com [209.85.220.216]) by mx1.freebsd.org (Postfix) with ESMTP id 28FE88FC20 for ; Sun, 17 May 2009 13:48:47 +0000 (UTC) (envelope-from army.of.root@googlemail.com) Received: by fxm12 with SMTP id 12so2758237fxm.43 for ; Sun, 17 May 2009 06:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=A3hcQL8hDNr5TtzPKKQNgfnInQtNJojwgIGeEf5t1/c=; b=ewrq9hKYppPcJV+Hm66vv9qaxIsE+pE1D4z/zccqHM7IEzJ6hcqAy58PU5FrCG8NeP mqlaKutW6u3ehxJSCmpasH5PSXoSLSo35Nj3OvpHiir4mc33PIIYSohLDu17TdkViDbQ Jsiy6Y324i4Eqgyq8lSnQ9mJ1C9FxTDl6/Qto= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=m2brrd6mz3XUzfTGXz0jS9od33R7vX1bsCNwr2VPtyjW4/uY3N/OEH02qB/STyvZAt kUb/Ma1/BOsiZjjLxak6LwoSWY+Lfzo392mp70QakmX9CFjmL+J72xLImElCqD6QR8Ml nehXhns9mQSKiCI9DX4JsKKap3t3IXjqiXl0A= Received: by 10.103.160.9 with SMTP id m9mr3423918muo.96.1242566305847; Sun, 17 May 2009 06:18:25 -0700 (PDT) Received: from ?192.168.2.24? (p5486FB53.dip.t-dialin.net [84.134.251.83]) by mx.google.com with ESMTPS id 12sm835086muq.23.2009.05.17.06.18.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 May 2009 06:18:25 -0700 (PDT) Message-ID: <4A100E9F.1020807@googlemail.com> Date: Sun, 17 May 2009 15:18:23 +0200 From: "army.of.root" User-Agent: Thunderbird 2.0.0.21 (X11/20090429) MIME-Version: 1.0 To: Felix Stolba References: <4A1003EE.5010700@googlemail.com> In-Reply-To: <4A1003EE.5010700@googlemail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: FreeBSD Current Subject: Re: 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:48:49 -0000 Felix Stolba wrote: > 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 Hi, there is already a way to attach geli disks via the rc.conf: geli_devices="ad4" geli_ad4_flags="-k /boot/keys/ad4.key" regards