NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: sandboxctl on 10.1/amd64 ?
On Sun, Mar 30, 2025 at 9:53 AM Michael van Elst <mlelstv%serpens.de@localhost> wrote:
>
> randrianasulu%gmail.com@localhost (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
Ah, big thanks, this worked (while of course SSL certs in strictly 9.0 chroot
prevented http upgraded to https transfers. ftp still works!)
>
Home |
Main Index |
Thread Index |
Old Index