~ubuntu-branches/ubuntu/quantal/lxc/quantal-201208301614

« back to all changes in this revision

Viewing changes to scripts/lxc-fedora.in

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2010-01-10 10:40:21 UTC
  • mto: (1.1.2 upstream) (3.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20100110104021-ff3ukvpu7yzc36hm
ImportĀ upstreamĀ versionĀ 0.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
# Default container name
8
8
NAME="fedora"
9
9
CONFFILE="lxc.conf"
10
 
MNTFILE="mount.conf"
11
10
UTSNAME=
12
11
IPV4="172.20.0.21"
13
12
GATEWAY="172.20.0.1"
138
137
lxc.network.link = br0
139
138
lxc.network.name = eth0
140
139
lxc.network.mtu = ${MTU}
141
 
lxc.mount = ${MNTFILE}
142
140
lxc.rootfs = ${ROOTFS}
143
141
lxc.cgroup.devices.deny = a
144
142
# /dev/null and zero
160
158
EOF
161
159
}
162
160
 
163
 
write_lxc_mounts() {
164
 
cat <<EOF > ${MNTFILE}
165
 
 
166
 
EOF
167
 
}
168
 
 
169
161
create() {
170
162
 
171
163
    # choose a container name, default is already in shell NAME variable
282
274
        ) 200> "@LOCALSTATEDIR@/lock/subsys/lxc"
283
275
    fi
284
276
 
285
 
write_lxc_mounts
286
 
 
287
277
write_lxc_configuration
288
278
 
289
279
write_distro_inittab
303
293
 
304
294
# remove the configuration files
305
295
rm -f ${CONFFILE}
306
 
rm -f ${MNTFILE}
307
296
 
308
297
if [ "${RES}" != "0" ]; then
309
298
    echo "Failed to create '${NAME}'"