BuildingWithSchroot

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "= Introduction = = Preparation = == share apt cache == sudo sh -c 'echo /var/cache/apt/archives /var/cache/apt/archives none rw,bind 0 0 >>/etc/schroot/sbuild/fstab' == share...")
 
(share CC cache)
Line 11: Line 11:
 
  $dir $dir none rw,bind 0 0
 
  $dir $dir none rw,bind 0 0
 
  END
 
  END
 +
then
 +
  296  vi /var/cache/ccache-sbuild/sbuild-setup
 +
  297  chmod +x /var/cache/ccache-sbuild/sbuild-setup
 +
 
== Buidling a new schroot ==
 
== Buidling a new schroot ==
 
  sbuild-createchroot --make-sbuild-tarball=/var/lib/sbuild/jessie-amd64.tar.gz jessie `mktemp -d` http://ftp.at.debian.org/debian
 
  sbuild-createchroot --make-sbuild-tarball=/var/lib/sbuild/jessie-amd64.tar.gz jessie `mktemp -d` http://ftp.at.debian.org/debian

Revision as of 12:30, 22 May 2015

Contents

Introduction

Preparation

share apt cache

sudo sh -c 'echo /var/cache/apt/archives /var/cache/apt/archives none rw,bind 0 0 >>/etc/schroot/sbuild/fstab'

share CC cache

enter shell, then:

dir=/var/cache/ccache-sbuild
install --group=sbuild --mode=2775 -d $dir
env CCACHE_DIR=$dir ccache --max-size 4G
cat >>/etc/schroot/sbuild/fstab <<END
$dir $dir none rw,bind 0 0
END

then

 296  vi /var/cache/ccache-sbuild/sbuild-setup
 297  chmod +x /var/cache/ccache-sbuild/sbuild-setup

Buidling a new schroot

sbuild-createchroot --make-sbuild-tarball=/var/lib/sbuild/jessie-amd64.tar.gz jessie `mktemp -d` http://ftp.at.debian.org/debian

Debugging

Find out paths

schroot --info --all-sessions | grep Path

Adding user

sbuild-adduser <username>

List sessions

schroot --list

Shell

sbuild-shell source:wheezy-amd64-sbuild
Personal tools