Re: Weird errors during install.site
On Fri, Jul 29, 2016 at 03:13:16AM BST, James Pole wrote: > > On 29/07/2016, at 12:59 AM, trondd wrote: > > I do most everything in rc.firsttime. I think you're going to be better > > off just moving your stuff to rc.firsttime rather than trying to > > manipulate the rd environment. Is that really going to be easier than > > copy/pasting lines out of a script? > > > > I have an rc.firsttime.tail file in the site tarball, and in install.site, > > I 'cat' it onto the end of any existing rc.firsttime assuming that the > > official install process might want to use it sometimes and I don't want > > to blow it away. > > My initial thought was I would have to echo all the scripted commands I wanted > to make to >> rc.firsttime. But your suggestion of creating a separate > rc.firstime.tail script and then appending the whole thing to rc.firsttime at > once seems like an elegant solution which I will adopt. Hi James, FYI, ld.so.hints file removal is deliberate[0]. Regards, Raf [0] http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/distrib/miniroot/install.sub?f=h#rev1.645
Re: Weird errors during install.site
> On 29/07/2016, at 12:59 AM, trondd wrote: > I do most everything in rc.firsttime. I think you're going to be better > off just moving your stuff to rc.firsttime rather than trying to > manipulate the rd environment. Is that really going to be easier than > copy/pasting lines out of a script? > > I have an rc.firsttime.tail file in the site tarball, and in install.site, > I 'cat' it onto the end of any existing rc.firsttime assuming that the > official install process might want to use it sometimes and I don't want > to blow it away. My initial thought was I would have to echo all the scripted commands I wanted to make to >> rc.firsttime. But your suggestion of creating a separate rc.firstime.tail script and then appending the whole thing to rc.firsttime at once seems like an elegant solution which I will adopt. Thank you, James
Re: Weird errors during install.site
On Thu, July 28, 2016 4:40 am, James Pole wrote: > Hello, > > My thinking at this stage is either to: > (1) Move the pkg_add(1) command to /etc/rc.firsttime. This which would > also > mean moving a whole lot of other scripted commands that depends on these > packages to /erc/rc.firsttime as well so I am keen to avoid this approach > if > possible. > (2) Figure out a way to fix ldconfig(8) so it works during the execution > of > install.site. Iâ**ve read the ldconfig(8) man page. Despite that Iâ**m > still > not confident that itâ**s wise to call ldconfig(8) during the execution of > install.site. And even if would work, I am not sure which flags, if any, > would > be appropriate. > > I would appreciate any tips. :) > > Regards, > James > bsd.rd is intentially stripped down. There is a warning that it won't be as functional as a normal system so be careful with your expectations in install.site scripts. I do most everything in rc.firsttime. I think you're going to be better off just moving your stuff to rc.firsttime rather than trying to manipulate the rd environment. Is that really going to be easier than copy/pasting lines out of a script? I have an rc.firsttime.tail file in the site tarball, and in install.site, I 'cat' it onto the end of any existing rc.firsttime assuming that the official install process might want to use it sometimes and I don't want to blow it away.
Weird errors during install.site
Hello, I have an install.site script which calls (among others) these commands:- [â¦] packages="git letsencrypt postgresql-server vimâno_x11" [â¦] pkg_add $packages [â¦] When the script is executed, the following errors appears:- [â¦] git-2.7.0:libiconv-1.14p3 (installing) [â¦] 3% ldconfig: /var/run/ld.so.hints: No such file or directory [â¦] postgresql-server-9.4.6:libxml-2.9.3 (installing) [â¦] 100% /usr/local/bin/xmlcatalog: canât load library âlibxml2.so.15.1â [â¦] I am not sure if these are harmful errors, but I am operating on the assumption they are (particularly the second one). My thinking at this stage is either to: (1) Move the pkg_add(1) command to /etc/rc.firsttime. This which would also mean moving a whole lot of other scripted commands that depends on these packages to /erc/rc.firsttime as well so I am keen to avoid this approach if possible. (2) Figure out a way to fix ldconfig(8) so it works during the execution of install.site. Iâve read the ldconfig(8) man page. Despite that Iâm still not confident that itâs wise to call ldconfig(8) during the execution of install.site. And even if would work, I am not sure which flags, if any, would be appropriate. I would appreciate any tips. :) Regards, James