Scripting bsdinstall

Gary Jennejohn gljennjohn at gmail.com
Thu Jan 2 11:00:14 UTC 2020


On Thu, 2 Jan 2020 13:08:48 +0400
Gleb Popov <arrowd at freebsd.org> wrote:

> Continuing my quest I met another problem.
> 
> In the setup script I have following line:
> 
> pkg install -y openvpn python python3
> 
> It gets executed in the chroot, the installed system. During package
> installation I see following warnings:
> 
> indexinfo: no such file or directory
> POST-INSTALL script failed
> 
> However, when I enter the chroot shell, this binary works fine.
> 
> Any ideas how to fix this?
>

If you know exactly which binary it is then just put it into its
own pkg install line with -I.  This flag suppresses running PRE-/
POST-INSTALL scripts.

If you don't care which of the three it is then just add -I to
the line above.

This information is in PKG-INSTALL(8).

-- 
Gary Jennejohn


More information about the freebsd-hackers mailing list