jmmv / sandboxctl

Automates the creation and management of chroot-based sandboxes
BSD 3-Clause "New" or "Revised" License
18 stars 2 forks source link

Support Solaris and derivatives #6

Open schmonz opened 7 years ago

schmonz commented 7 years ago

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 also chroot?

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.

schmonz commented 1 year 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.

schmonz commented 1 year ago

Hints for later: a script that sandbox-mounts stuff, a script that sandbox-destroys it, and the corresponding config file.