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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
description "redirect builtin fstab for lxc"

start on starting mountall
console output
task

env container

pre-start script
	if [ "x$container" != "xlxc" -a "x$container" != "xlibvirt" ]; then
		stop
		exit 0
	fi
	if [ ! -r /lib/init/fstab.$container ]; then
		echo "lxcmount: no /lib/init/fstab.$container found"
		stop
		exit 0
	fi

	exit 0;
end script

exec mount --bind /lib/init/fstab.$container /lib/init/fstab