From owner-freebsd-questions@FreeBSD.ORG Fri Dec 16 12:51:07 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B42B16A41F for ; Fri, 16 Dec 2005 12:51:07 +0000 (GMT) (envelope-from helge.preuss@gmx.net) Received: from mail.gmx.net (mail.gmx.de [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 7C84343D5E for ; Fri, 16 Dec 2005 12:51:06 +0000 (GMT) (envelope-from helge.preuss@gmx.net) Received: (qmail invoked by alias); 16 Dec 2005 12:51:05 -0000 Received: from e178080151.adsl.alicedsl.de (EHLO [192.168.0.146]) [85.178.80.151] by mail.gmx.net (mp029) with SMTP; 16 Dec 2005 13:51:05 +0100 X-Authenticated: #6367088 Message-ID: <43A2B86B.9020800@gmx.net> Date: Fri, 16 Dec 2005 13:51:55 +0100 From: Helge Preuss User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erik Norgaard References: <43A2AD65.9080607@gmx.net> <43A2AFD6.4000506@locolomo.org> In-Reply-To: <43A2AFD6.4000506@locolomo.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org Subject: Re: Order of rc file execution X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Dec 2005 12:51:07 -0000 >> I use a GBDE-encrypted /var partition which i attach and mount during >> boot in rc.local. > > > why don't you use /etc/rc.d/gbde? (btw, which version of FBSD?). Heh, because I didn't know about it! Thanks, this looks like the cleanest solution. How do I use this script? If I interpret the source correctly, I should just set gbde_devices-auto="AUTO" in /etc/rc.conf and enter my encrypted partition in the fstab? Dummy question: Where should I look to find documentation about scripts like this? I haven't found it mentioned in either the handbook or the manpages. BTW, I use 5.4. > >> As an ugly workaround i copied the ld*.so.hints to the encrypted >> /var/run, but obviously it is better to run /etc/rc.d/local before >> /etc/rc.d/ldconfig. I understand I can achieve this by changing the line >> >> # BEFORE: LOGIN >> >> in local to >> >> # BEFORE: ldconfig >> >> and change the REQUIRE line too to avoid a circular dependency. >> >> I'd just like to ask the list whether there is a way which does not >> require changing system-supplied scripts. I'd prefer making my edits >> in a centralized way (for instance, editing something like >> /etc/rc.local) instead of something under rc.d. > > > Option 1: seems to be use /etc/rc.d/gbde to mount your /var > > Option 2: seems to be create your script under /etc/rc.d with the > desired BEFORE line. > > This doesn't change system supplied scripts, but when you do > mergemaster then you will be asked if you want to delete this "stale" > script. > > Cheers, Erik >