Open schmonz opened 7 years ago
I've made a very partial first pass at this on my solarish
branch, borrowing from pkgtools/mksandbox
. On Oracle's ready-to-run Solaris 11.4 VirtualBox VM, create
and shell
kinda seem to work, but unmount
(and destroy
) don't.
@jmmv, thanks for making it easy to understand where to put the implementation -- it's just that I'm not totally sure what should go in it. If you're up for pair programming to figure it out together, I'd enjoy that. Otherwise, to finish this, we'll need help from someone who has a better idea how these things are supposed to work on Solaris.
Hints for later: a script that sandbox-mounts stuff, a script that sandbox-destroys it, and the corresponding config file.
I asked @jperkin how he sandboxes the Joyent SmartOS bulk builds, and he pointed at this
pbulk
change. I guess the Solaris-family sandbox trick is alsochroot
?Tribblix is a minimal Solaris-derived OS that's easy to install in a VM and bootstrap pkgsrc on. After booting into the installed system, I think all I needed to do before bootstrapping was
zap install-overlay develop
.