~serge-hallyn/ubuntu/natty/lxc/lxc-clone

« back to all changes in this revision

Viewing changes to debian/lxcguest.console.upstart

  • Committer: Serge Hallyn
  • Date: 2011-04-12 01:31:42 UTC
  • Revision ID: serge.hallyn@canonical.com-20110412013142-9vc070731g8eburt
Tags: 0.7.4-0ubuntu8
lxcguest: for libvirt containers, offer console on /dev/pts/0 rather
than /dev/console.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
env container
11
11
pre-start script
12
 
        if [ "x$container" != "xlxc" && "x$container" != "xlibvirt" ]; then
 
12
        if [ "x$container" != "xlxc" -a "x$container" != "xlibvirt" ]; then
13
13
                stop;
14
14
        fi
15
15
        exit 0;
17
17
 
18
18
respawn
19
19
 
20
 
exec /sbin/getty -8 38400 /dev/console
 
20
script
 
21
        if [ "$container" = "libvirt" ]; then
 
22
                dev=/dev/pts/0
 
23
        else
 
24
                dev=/dev/console
 
25
        fi
 
26
        exec /sbin/getty -8 38400 $dev
 
27
end script