Commit graph

14 commits

Author SHA1 Message Date
jperkin
a076d14ba7 mksandbox-1.5: Mount /run on newer Linux for dynamic resolv.conf 2015-07-05 11:47:14 +00:00
jperkin
73742a85a5 Update to mksandbox-1.4. Changes:
- Only copy $kernel if it exists, fixes warning on OSX 10.10 which moves
   the kernel location to a directory we already mount, noted by J. Lewis
   Muir on pkgsrc-users.

 - Add NO_CHECKSUM=yes to appease pkglint.
2015-04-14 08:55:07 +00:00
obache
34637a70ac Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
jperkin
be6bed6b44 mksandbox-1.3:
- Add /usr/sfw to SunOS mount dirs, required for certain binaries on
   newer releases.
 - Mount proper instances of /dev and /dev/fd on SunOS rather than relying
   on devfsadm and ucblinks, the latter of which does not exist on newer
   releases.
 - Do not create /var/games if the games user does not exist.
2013-07-24 22:16:26 +00:00
jperkin
11bf2bd590 mksandbox-1.2:
* Mount /proc read-write on Linux, it appears to be required for e.g.
    groupadd to function correctly.

  * Add new --rodirs and --rwdirs options, which allow arbitrary lists
    of directories to be mounted appropriately inside the chroot.

  * Add --without-pkgsrc which prevents the default pkgsrc directories
    from being mounted.

This allows mksandbox to be easily used for chrooted pbulk setups, using
a simple invocation such as:

  mksandbox --without-pkgsrc --rodirs=/usr/pbulk --rwdirs=/shared /chroot
2013-07-20 10:20:42 +00:00
jperkin
58c1cbdabc mksandbox-1.1:
* Add /lib64 and /usr/lib64 on Linux.
  * Ensure that read-only --bind mounts on Linux are actually read-only.
2013-07-18 16:07:22 +00:00
agc
fa1cb09ad0 I'll take responsibility for this one. 2013-05-29 15:57:09 +00:00
wiz
e8276fbb5b - add missing `--mounthost=host' option (and adjust the list width
for that);
- use more common option list header line;
- correct argument names of `--src' and `--xsrc' in the text;
- correct default `xsrcdir' directory;
- choose different argument wording (then also using appropriate
  macro) in the arbitrary sandbox command running explanation (and
  adjust the list width with it);
- add comma after ``e.g.'';
- bump date.

From Bug Hunting.
2013-05-29 15:14:49 +00:00
wiz
0d9c89700d - add missing `--mounthost=host' option to usage comment;
- sort options order in usage comment and `usage' message;
- de-capitalize ``usage'' word in usage message.

From Bug Hunting.
2013-05-29 15:09:49 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
wiz
42c24894ca Follow suit -- change to 2-clause BSD, and adapt Makefile LICENSE variable. 2012-08-26 22:13:18 +00:00
agc
05e16378ed Change to a 2-clause licen[cs]e. 2012-08-26 21:38:34 +00:00
wiz
0f9f94e78a Add more documentation. 2012-08-26 11:00:23 +00:00
wiz
0e1bdf6848 Import mksandbox-1.0 as pkgtools/mksandbox.
A small shell script to set up a sandbox (usually for a pkgsrc bulk
build), using null mounts.

The file lived in pkgsrc/mk/bulk/mksandbox, but is worthy of its own
package IMHO. New: with manpage.
2012-08-26 10:31:23 +00:00