~ubuntu-branches/ubuntu/quantal/lxc/quantal-201206191543

« back to all changes in this revision

Viewing changes to debian/patches/0083-ubuntu-simplify-template

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-06-01 11:57:44 UTC
  • Revision ID: package-import@ubuntu.com-20120601115744-33xz9yja385nxxeq
Tags: 0.8.0~rc1-4ubuntu12
Fix broken logic in lxc-ubuntu template where lxc.devttydir would be
set to 'lxc' only for releases that don't support it. (LP: #1007493)

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
 
194
194
     ttydir=""
195
195
-    if [ $release = "precise" ] || [ $release = "quantal" ]; then
196
 
+    if [ ! -f $rootfs/etc/init/container-detect.conf ]; then
 
196
+    if [ -f $rootfs/etc/init/container-detect.conf ]; then
197
197
         ttydir=" lxc"
198
198
     fi
199
199