~serge-hallyn/ubuntu/natty/lxc/lxc-fix-3bugs

« back to all changes in this revision

Viewing changes to scripts/lxc-sshd.in

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter, Stéphane Graber, Guido Trotter
  • Date: 2010-01-10 10:40:21 UTC
  • mfrom: (1.1.2 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100110104021-z8rj5zw5mlvra08l
Tags: 0.6.4-1
[ Stéphane Graber ]
* Upgrade standards-version to 3.8.3
* Drop the copy of etc/* from rules as "etc" is no longer in the tarball

[ Guido Trotter ]
* New Upstream Version
* Update libcap2-dev dependency to libcap-dev
* Install upstream-built man pages via debian/lxc.manpages
* Drop unneeded docbook-utils build dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
 
349
349
NAME="sshd"
350
350
CONFFILE="lxc.conf"
351
 
MNTFILE="mount.conf"
352
351
UTSNAME=
353
352
IPV4="172.20.0.20/24"
354
353
 
390
389
lxc.network.link = br0
391
390
lxc.network.ipv4 = $IPV4
392
391
lxc.network.name = eth0
393
 
lxc.mount = $MNTFILE
394
392
lxc.rootfs = $ROOTFS
395
 
EOF
396
 
 
397
 
cat <<EOF > $MNTFILE
398
 
/lib $(pwd)/$ROOTFS/lib none ro,bind 0 0
399
 
/bin $(pwd)/$ROOTFS/bin none ro,bind 0 0
400
 
/usr $(pwd)/$ROOTFS/usr none ro,bind 0 0
401
 
/sbin $(pwd)/$ROOTFS/sbin none ro,bind 0 0
 
393
lxc.mount.entry=/lib $(pwd)/$ROOTFS/lib none ro,bind 0 0
 
394
lxc.mount.entry=/bin $(pwd)/$ROOTFS/bin none ro,bind 0 0
 
395
lxc.mount.entry=/usr $(pwd)/$ROOTFS/usr none ro,bind 0 0
 
396
lxc.mount.entry=/sbin $(pwd)/$ROOTFS/sbin none ro,bind 0 0
402
397
EOF
403
398
 
404
399
if [ "$(uname -m)" = "x86_64" ]; then
405
 
cat <<EOF >> $MNTFILE
406
 
/lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0
 
400
cat <<EOF >> $CONFFILE
 
401
lxc.mount.entry=/lib64 $(pwd)/$ROOTFS/lib64 none ro,bind 0 0
407
402
EOF
408
403
fi
409
404
 
410
405
    @BINDIR@/lxc-create -n $NAME -f $CONFFILE
411
406
 
412
 
    rm -f $MNTFILE
413
407
    rm -f $CONFFILE
414
408
 
415
409
    echo "Done."