Date: Fri, 16 Dec 2005 13:51:55 +0100 From: Helge Preuss <helge.preuss@gmx.net> To: Erik Norgaard <norgaard@locolomo.org> Cc: freebsd-questions@freebsd.org Subject: Re: Order of rc file execution Message-ID: <43A2B86B.9020800@gmx.net> In-Reply-To: <43A2AFD6.4000506@locolomo.org> References: <43A2AD65.9080607@gmx.net> <43A2AFD6.4000506@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43A2B86B.9020800>