Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Debian Linux in Chroot

From: Douglas Allan Tutty <dtutty(at)porchlight.ca>
Date: Wed Aug 01 2007 - 09:28:13 EDT


On Tue, Jul 31, 2007 at 02:31:07PM +0530, Masatran, R. Deepak wrote:
> I have two Linux installations in my hard drive, and I want to modify
> Linux-2 from Linux-1, using Chroot. Basically "dpkg-reconfigure" and similar
> stuff. How do I tell DPKG of Linux-2 to not disturb the daemons that are
> running in Linux-1?

The easiest way is to, on Linux-1, install schroot. Then tell schroot how to access the chroot. It then takes care of mounting anything required. For example, on my amd64, I have an i386 chroot installed under /srv/chroot, and here's my schroot.conf:

[etch-ia32]
type=directory
description=Debian Etch ia32
groups=ssh
run-setup-scripts=true
run-exec-scripts=true
personality=linux32
location=/srv/chroot/etch-ia32

The groups=ssh is a security feature; only people who I trust to run ssh can run schroot. I generally schroot into the chroot and then run the command. To do so its just:

$ schroot -pc etch-ia32

The -p means to bring in my environment: usefull if I want to run an X app.

The -c is telling schroot which chroot to use.

I understand that your chroot in this case is also a fully bootable instalation on its own, with its own kernel. However, that kernel and its daemons will not run under a chroot, only when it is booted.

Do you need help?X

Doug.

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Wed Aug 1 09:29:19 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 18:36:58 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library