~ubuntu-branches/ubuntu/maverick/schroot/maverick-updates

« back to all changes in this revision

Viewing changes to bin/schroot/setup/05file

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2008-01-20 22:51:04 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120225104-3zhs8gk9byqigato
Tags: 1.1.6-1
* New upstream development release.
* Acknowledge NMU.  Thanks to Lucas Nussbaum for fixing the Boost
  library names following another incompatible change in Boost
  (Closes: #439215).
* debian/control: Suggest lvm2 instead of lvm-common (Closes: #452263).
* debian/copyright:
  - Update with new GIT source code repository location.
  - Update licence to GPLv3.
* debian/schroot.init: Update licence to GPLv3.
* bin/schroot/setup/20network, bin/schroot/setup/30passwd: For files to
  copy, compare file device, inode and contents to avoid copying
  identical files (Closes: #428808).
* If unknown keys are present in the configuration file, print a warning
  message to alert the user (Closes: #459658).
* The filesystems to mount in the chroot may be customised by the system
  administrator through the use of an fstab file on a per-chroot basis,
  and a new helper utility, schroot-mount (Closes: #395062, #427047).
  Thanks for your patience while we took the time to implement this the
  right way.
* Update Vietnamese translation (Closes: #461531).  Thanks to Clytie
  Siddall.
* debian/schroot.preinst: Add rm_conffile function to remove
  /etc/schroot/setup.d/20network and /etc/schroot/setup.d/30passwd for
  versions prior to this.  These are replaced by
  /etc/schroot/setup.d/20copyfiles.
* debian/schroot.NEWS: Document conffile changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
# Copyright © 2005-2007  Roger Leigh <rleigh@debian.org>
3
3
#
4
 
# schroot is free software; you can redistribute it and/or modify it
 
4
# schroot is free software: you can redistribute it and/or modify it
5
5
# under the terms of the GNU General Public License as published by
6
 
# the Free Software Foundation; either version 2 of the License, or
 
6
# the Free Software Foundation, either version 3 of the License, or
7
7
# (at your option) any later version.
8
8
#
9
9
# schroot is distributed in the hope that it will be useful, but
12
12
# General Public License for more details.
13
13
#
14
14
# You should have received a copy of the GNU General Public License
15
 
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17
 
# MA  02111-1307  USA
 
15
# along with this program.  If not, see
 
16
# <http://www.gnu.org/licenses/>.
 
17
#
 
18
#####################################################################
18
19
 
19
20
set -e
20
21
 
117
118
            exit 1
118
119
        done || exit 1
119
120
 
120
 
        if [ "$AUTH_VERBOSITY" = "verbose" ]; then
121
 
            echo "Purging $CHROOT_MOUNT_LOCATION"
 
121
        if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
 
122
            if [ "$AUTH_VERBOSITY" = "verbose" ]; then
 
123
                echo "Purging $CHROOT_MOUNT_LOCATION"
 
124
            fi
 
125
            rm -rf "$CHROOT_MOUNT_LOCATION"
122
126
        fi
123
127
 
124
 
        rm -rf "$CHROOT_MOUNT_LOCATION"
125
 
 
126
128
    fi
127
129
 
128
130
fi