Scripting bsdinstall

Gleb Popov arrowd at freebsd.org
Thu Jan 2 20:40:06 UTC 2020


On Thu, Jan 2, 2020 at 1:08 PM 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?
>

Figured this out. The command should be

env PATH=$PATH:/usr/local/bin pkg install ...


More information about the freebsd-hackers mailing list