LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-01-2020, 11:16 PM   #1
drgibbon
Member
 
Registered: Nov 2014
Distribution: Slackware64 -current
Posts: 708

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
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.
 
Old 04-06-2020, 08:00 PM   #2
drgibbon
Member
 
Registered: Nov 2014
Distribution: Slackware64 -current
Posts: 708

Original Poster
Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
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..).
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sbopkg installs "original" SlackBuild to /usr/doc/<pkg>/ instead of "local" SlackBuild drumz Slackware 29 01-20-2018 12:12 AM
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
Live Image mount: union FS overlay vs dmsetup overlay kostya Linux - Software 2 02-16-2012 06:38 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
to chroot or not to chroot complus Linux - Security 4 02-29-2004 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration