]> git.ipfire.org Git - thirdparty/lxc.git/commit
ubuntu-cloud-prep: patch /sbin/start for overlayfs
authorScott Moser <smoser@ubuntu.com>
Fri, 16 Aug 2013 20:47:32 +0000 (16:47 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 16 Aug 2013 21:05:40 +0000 (16:05 -0500)
commitd24d56d7ee3420bb79238ff84cad07c20cf4757d
tree206ee91a8b49f4190de08a4eb5ae8597bcdbc012
parente3fdf5cc9c60eb97f8520f059ad1a09d3f73509d
ubuntu-cloud-prep: patch /sbin/start for overlayfs

upstart depends on inotify, and overlayfs does not support inotify.

That means that the following results in 'tgt' not running. tgt is simply
used here as an example of a service that installs an upstart job and
starts it on package install.
 lxc-clone -s -B overlayfs -o source-precise-amd64 -n test1
 lxc-start -n test1
 ..
 apt-get install tgt

The change here is to modify /sbin/start inside the container so that when
something explicitly tries 'start', it results in an explicit call to
'initctl reload-configuration' so that upstart is aware of the newly
placed job.

Should overlayfs ever gain inotify support, this should still not cause
any harm.

Signed-off-by: Scott Moser <smoser@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
hooks/ubuntu-cloud-prep