[arch-general] Difference between mkarchroot and arch-chroot

2013-01-15 Thread gt
Can someone elaborate on the difference between mkarchroot and
arch-chroot?

Basically, i want a chrooted environment for testing some program.

Alternatively, is there any other better way to create an isolated
environment, apart from chroot and VMs.


Re: [arch-general] Difference between mkarchroot and arch-chroot

2013-01-15 Thread Thomas Bächler
Am 15.01.2013 09:38, schrieb gt:
 Can someone elaborate on the difference between mkarchroot and
 arch-chroot?
 
 Basically, i want a chrooted environment for testing some program.
 
 Alternatively, is there any other better way to create an isolated
 environment, apart from chroot and VMs.

mkarchroot creates a new system root. If you want to test a program in
an isolated environment, I suggest you look into systemd-nspawn. If you
want more security, libvirt-lxc may be your friend (it seems lxc is
broken in many ways and doesn't work right with systemd, libvirt-lxc
however seems to be fine, I tested neither).



signature.asc
Description: OpenPGP digital signature


Re: [arch-general] Difference between mkarchroot and arch-chroot

2013-01-15 Thread gt
On Tue, Jan 15, 2013 at 10:13:58AM +0100, Thomas Bächler wrote:
 mkarchroot creates a new system root. If you want to test a program in
 an isolated environment, I suggest you look into systemd-nspawn. If you
 want more security, libvirt-lxc may be your friend (it seems lxc is
 broken in many ways and doesn't work right with systemd, libvirt-lxc
 however seems to be fine, I tested neither).

Thank you. I will take a look at them.


Re: [arch-general] Difference between mkarchroot and arch-chroot

2013-01-15 Thread Kwpolska
On Tue, Jan 15, 2013 at 9:38 AM, gt static.vor...@gmx.com wrote:
 Can someone elaborate on the difference between mkarchroot and
 arch-chroot?

 Basically, i want a chrooted environment for testing some program.

 Alternatively, is there any other better way to create an isolated
 environment, apart from chroot and VMs.

arch-chroot — chrooting into an existing environment, using on the
Arch install medium to get to your brand new root you pacstrap’d ten
seconds ago (or for recovery of an existing root).

mkarchroot — creating a brand new Arch Linux environment/root.

So, two different things when you think about it.
-- 
Kwpolska http://kwpolska.tk
stop html mail  | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16


Re: [arch-general] Difference between mkarchroot and arch-chroot

2013-01-15 Thread gt
On Tue, Jan 15, 2013 at 06:08:01PM +0100, Kwpolska wrote:
 On Tue, Jan 15, 2013 at 9:38 AM, gt static.vor...@gmx.com wrote:
  Can someone elaborate on the difference between mkarchroot and
  arch-chroot?
 arch-chroot — chrooting into an existing environment, using on the
 Arch install medium to get to your brand new root you pacstrap’d ten
 seconds ago (or for recovery of an existing root).
 
 mkarchroot — creating a brand new Arch Linux environment/root.
 
 So, two different things when you think about it.

Yup, I got it later on. Was a bit stupid question, now I think about it
:P

Anyway, since Thomas mentioned systemd-nspawn, and it seems to do the
same stuff as arch-chroot, I was wondering what are the differences
between the two, and would arch-chroot be deprecated in the future?