conf/128299: [patch] /etc/rc.d/geli does not mount partitions using both journal and eli

Martin Beran mb at tns.cz
Tue Feb 17 01:10:03 PST 2009


The following reply was made to PR conf/128299; it has been noted by GNATS.

From: Martin Beran <mb at tns.cz>
To: bug-followup at FreeBSD.org, Yoshihiro Ota <ota at j.email.ne.jp>
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


More information about the freebsd-rc mailing list