randrianas...@gmail.com (Andrew Randrianasulu) writes:

>I tried to use sandboxctl on 10.1_stable/amd64 host for creating 9.0 amd64
>chroot

> sandboxctl: D: Creating device nodes
> sandboxctl: E: Failed to create sandbox type netbsd-release


The latest sandboxctl does:

    shtk_cli_debug "Creating device nodes"
    chroot "${root}" /bin/sh -c "cd /dev && ./MAKEDEV all"
    chroot "${root}" /bin/sh -c "[ -x /usr/sbin/certctl ] && /usr/sbin/certctl 
rehash"



The last command fails when the sandbox has no /usr/sbin/certctl binary,
so any attempt to install a netbsd-9 (or older) sandbox fails.

It should be changed to something like:

chroot "${root}" /bin/sh -c "[ ! -x /usr/sbin/certctl ] || /usr/sbin/certctl 
rehash"

The command is in:

/usr/pkg/share/sandboxctl/netbsd_release.subr

Reply via email to