~kim0/lxc/bug-740167

« back to all changes in this revision

Viewing changes to debian/patches/0003-squeeze-missing-tty.patch

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2010-12-06 16:24:31 UTC
  • mfrom: (1.1.6 upstream) (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20101206162431-lvg92fyuiupfoqek
Tags: 0.7.3-1
* New upstream version (closes: #602631)
  - Support for specifying debian suite (closes: #600459)
  - Support for declaring a different architecture (closes: #597875)
* Fix restart init.d action sequence (closes: #597998)
* Move too-deep /usr/lib/lxc/lxc path to a proper patch
* Disable checkroot script in debian template (closes: #601001)
* Create missing tty devices under squeeze (closes: #600466)
* Restore bindmount functionality in newer kernels (closes: #604475)
* Make debian mirror configurable (closes: #601422)
* Default to cdn.debian.net as a debian mirror (closes: #600464)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: Daniel Baumann <daniel.baumann@progress-technologies.net>
 
2
Date: Mon, 6 Dec 2010 16:12:36 +0100
 
3
Subject: [PATCH] squeeze-missing-tty
 
4
 
 
5
---
 
6
 templates/lxc-debian.in |    7 +++++++
 
7
 1 files changed, 7 insertions(+), 0 deletions(-)
 
8
 
 
9
diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
 
10
index 2b1b7b3..68ba3ca 100644
 
11
--- a/templates/lxc-debian.in
 
12
+++ b/templates/lxc-debian.in
 
13
@@ -27,6 +27,13 @@ configure_debian()
 
14
     rootfs=$1
 
15
     hostname=$2
 
16
 
 
17
+    # Squeeze only has /dev/tty and /dev/tty0 by default,
 
18
+    # therefore creating missing device nodes for tty1-4.
 
19
+    test -e $rootfs/dev/tty1 || mknod $rootfs/dev/tty1 c 4 1
 
20
+    test -e $rootfs/dev/tty2 || mknod $rootfs/dev/tty2 c 4 2
 
21
+    test -e $rootfs/dev/tty3 || mknod $rootfs/dev/tty3 c 4 3
 
22
+    test -e $rootfs/dev/tty4 || mknod $rootfs/dev/tty4 c 4 4
 
23
+
 
24
     # configure the inittab
 
25
     cat <<EOF > $rootfs/etc/inittab
 
26
 id:3:initdefault:
 
27
--