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

« back to all changes in this revision

Viewing changes to debian/lxcguest.lxcmount.upstart

  • Committer: Serge Hallyn
  • Date: 2011-04-11 19:05:47 UTC
  • Revision ID: serge.hallyn@canonical.com-20110411190547-aw2fq8trsmsqv550
Tags: 0.7.4-0ubuntu7
lxcguest: offer alternate jobs for libvirt-lxc.  Libvirt-lxc doesn't watch
guest's utmp (doesn't support clean shutdown at all) so it can safely
mount its own /var/run and such.  Hopefully this can go away after lxc
supports clean shutdown/reboot without the utmp-watching hack.
(LP: #757752)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
env container
8
8
 
9
9
pre-start script
10
 
        [ "x$container" != "xlxc" ] && { stop; exit 0; }
11
 
        [ ! -r /lib/init/fstab.lxc ] && { stop; exit 0; }
 
10
        if [ "x$container" != "xlxc" -a "x$container" != "xlibvirt" ]; then
 
11
                stop
 
12
                exit 0
 
13
        fi
 
14
        if [ ! -r /lib/init/fstab.$container ]; then
 
15
                echo "lxcmount: no /lib/init/fstab.$container found"
 
16
                stop
 
17
                exit 0
 
18
        fi
 
19
 
12
20
        exit 0;
13
21
end script
14
22
 
15
 
exec mount --bind /lib/init/fstab.lxc /lib/init/fstab
16
 
 
 
23
exec mount --bind /lib/init/fstab.$container /lib/init/fstab