"Create and work with loopback mounted, luks encrypted, file based chroot
guests."
zchroot v0.2.5, a stable snapshot as of today, is available at:
http://soulsound.net/
After installation, ALL commands (options) work as advertised, which might
help testing :)
(zchroot is now robust for my uses)
Added INSTALL doc and a bunch of cleanups over the last week.
Any feedback appreciated.
The INSTALL doc should make testing reasonably easy (eg, depends on ZBASE
env var for now, and umounting depends on schroot's
/usr/lib/schroot/schroot-listmounts).
It's GPL if that makes any difference.
I work in a git repo if you want that just ask.
$ zchroot --help
zchroot 0.2.5
Copyright (C) 2010 Zenaan Harkness.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
ZBASE: /home/justa
ENV: /home/justa/etc/zchroot.conf (config will be loaded from here)
Create and work with loopback mounted, luks encrypted, file based chroot
guests.
Usage: zchroot --new <chroot> : Create chroot; NOTE: chroot
~= suite-target.
zchroot <action> <CMD> [<chroot>...] : Run commands against
chroots.
zchroot <chroot> : Open shell in chroot.
zchroot --help : Display more help.
Mandatory arguments to long options are mandatory for short options too.
<actions>
-n, --new <chroot> Create new chroot guest in a loopback mounted file.
-s, --status <chroot>...
Show status of chroots.
-X, --host-init Do some chroot-related host initialization,
eg. xhost/ X local connections.
-m, --mount <chroot>...
-u, --umount <chroot>...
Mount and umount chroot(s).
-i, --in <CMD> <chroot>...
For each chroot, run CMD after chrooting into
chroot:
run CMD as chroot root user, from chroot(s)' / dir.
-o, --out <CMD> <chroot>...
For each chroot, run CMD:
run CMD as current user, from chroot(s)' / dir.
-t, --tmp Do some random tmp stuff.
-h, --help Show this help.
-V, --version Show version information.
<chroot> Filename or mountpoint dir, eg lucid-dbtest.img or lucid-dbtest;
When creating new chroot, name MUST be of the form 'suite-target',
with a hyphen separating the two components:
suite - distribution suite, eg lucid, testing, lenny;
target - a name distinguishing this chroot from others, eg dbtest.
<CMD> Command to run, include quotes eg "apt-get update".
Please report bugs to <[email protected]>.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html