Article 51KAN Building a SlackBuild in an overlay-fs/chroot

Building a SlackBuild in an overlay-fs/chroot

by
drgibbon
from LinuxQuestions.org on (#51KAN)
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.latest?d=yIl2AUoC8zA latest?i=2_0Y_aU9830:UcZvhedN978:F7zBnMy latest?i=2_0Y_aU9830:UcZvhedN978:V_sGLiP latest?d=qj6IDK7rITs latest?i=2_0Y_aU9830:UcZvhedN978:gIN9vFw2_0Y_aU9830
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments