From owner-freebsd-rc@FreeBSD.ORG Tue Feb 17 09:10:02 2009 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBF1A106567E for ; Tue, 17 Feb 2009 09:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C9C4D8FC17 for ; Tue, 17 Feb 2009 09:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1H9A2Sc037869 for ; Tue, 17 Feb 2009 09:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1H9A2jK037868; Tue, 17 Feb 2009 09:10:02 GMT (envelope-from gnats) Date: Tue, 17 Feb 2009 09:10:02 GMT Message-Id: <200902170910.n1H9A2jK037868@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Martin Beran Cc: Subject: Re: conf/128299: [patch] /etc/rc.d/geli does not mount partitions using both journal and eli X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Beran List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 09:10:03 -0000 The following reply was made to PR conf/128299; it has been noted by GNATS. From: Martin Beran To: bug-followup@FreeBSD.org, Yoshihiro Ota Cc: Subject: Re: conf/128299: [patch] /etc/rc.d/geli does not mount partitions using both journal and eli Date: Tue, 17 Feb 2009 09:50:13 +0100 On Mon, Feb 16, 2009 at 11:22:43PM -0500, Yoshihiro Ota wrote: Hi, Hiro, > I think a patch at http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/120091 > fixes your porblem, too. > > Do you mind if you try and report it? I tried the patch. It solves the second half of the problem - mounting a DEVICE.eli.journal. But for successful mount of both DEVICE.eli.journal and DEVICE.journal.eli, I still need my patch for /etc/rc.d/geli and /etc/rc.d/geli2. Otherwise, I get: eval: ${geli_ad0s2d....}: Bad substitution Running "sh -x /etc/rc.d/geli start" reveals the reason of this error: ... + geli_expand_entry /dev/ad0s2d.journal.eli + local devices3 + local entry dev tail + tail=/dev/ad0s2d.journal.eli + true + dev=/dev/ad0s2d.journal.eli + devices3= /dev/ad0s2d.journal.eli + tail= + break + dev= + echo /dev/ad0s2d.journal.eli + devices=/dev/ad0s2d.journal.eli + provider=/dev/ad0s2d.journal + provider=ad0s2d.journal + devices2= ad0s2d.journal + echo ad0s2d.journal + devices=ad0s2d.journal + [ -z ] + [ -n ] + /sbin/sysctl -n kern.geom.eli.tries + geli_tries=3 + ltr ad0s2d.journal / _ + local _str _src _dst _out _com + _str=ad0s2d.journal + _src=/ + _dst=_ + _out= + IFS=/ + [ -z ] + _out=ad0s2d.journal + echo ad0s2d.journal + provider_=ad0s2d.journal + eval flags=${geli_ad0s2d.journal_flags} eval: ${geli_ad0s2d....}: Bad substitution -- Martin Beran