logo.png

STOW
LIBPCAP
SCHROOT
PYTHON
VIRTUALBOX
NARVAL
XDAQ

Home Up


Contents



1 Introduction

# aptitude install schroot

fichier /etc/schroot/schroot.conf or /etc/schroot/chroot.d/slc5_64:

[slc5_64]
description=SLC 5 64 bits
type=directory
# location=/mnt/slc5_64
directory=/mnt/slc5_64
users=nroche
aliases=slc5_64
# run-setup-scripts=true
# run-exec-scripts=true
personality=linux

fichier /etc/schroot/mount-defaults

# mount.defaults: static file system information for chroots.
# Note that the mount point will be prefixed by the chroot path
# (CHROOT_PATH)
#
# <file system>	<mount point>	<type>	<options>	<dump>	<pass>
proc		/proc		proc	defaults	0	0
#procbususb      /proc/bus/usb   usbfs   defaults        0       0
sys		/sys		sysfs	defaults	0	0
/dev            /dev            none    rw,bind         0       0
/dev/pts	/dev/pts	none	rw,bind		0	0
/dev/shm	/dev/shm	none	rw,bind		0	0
# /home		/home		none	rw,bind		0	0
/data1		/data1		none	rw,bind		0	0
/tmp		/tmp		none	rw,bind		0	0

  • $ schroot -l
  • $ schroot -vc slc5_64

Warning, the /etc/group, /etc/passwd, /etc/gshadow and /etc/shadow will be erased on the chrooted system partition. You need to backup them so as to restore them before normal boot.

Home Up

This document is also available in PDF and PostScript format.



2015-10-29