-   Slackware (
-   -   Building a SlackBuild in an overlay-fs/chroot (

drgibbon 04-01-2020 11:16 PM

Building a SlackBuild in an overlay-fs/chroot
Lately I've been wanting to test SlackBuilds in an isolated environment (without a full VM, container, etc), so I made a script to do that (sbuild). It builds SlackBuilds in an overlay-fs with chroot (I might try out bwrap at some stage too), and should support system configurations with separate partitions (like /home, or /usr/local).

I've run it through a bit of testing, but I'd be grateful if others who are interested could take a look. I've tried to make it safe and it works so far for me, but no guarantees. Ideally I'd like it not to run as root at all, or at least drop privileges quickly, but at the moment it's root only.

Just to note, the idea of this is not for regular use installing/managing packages—it's for quickly testing a SlackBuild and seeing what it does without affecting the main system.

drgibbon 04-06-2020 08:00 PM

I've expanded this a bit, you can run it interactive now (-i) with or without a SlackBuild. If there's no SlackBuild, it will just drop you into an overlay-fs shell, and you can test out whatever. I used it to see what the VirtualBox 6 installer script actually does (a bit more than just putting it into /opt/VirtualBox, like the installer output claims..).

All times are GMT -5. The time now is 09:04 AM.