Lines Matching refs:config
99 if [ -e $container_rootfs/etc/selinux/config ]; then
100 sed -i 's|SELINUX=enforcing|SELINUX=disabled|' $container_rootfs/etc/selinux/config
103 echo "SELINUX=disabled" >$container_rootfs/etc/selinux/config
134 if [ -f "$container_rootfs/etc/sysconfig/iptables-config" ]; then
135 sed -i 's|IPTABLES_MODULES=".*|IPTABLES_MODULES=""|' $container_rootfs/etc/sysconfig/iptables-config
136 sed -i 's|IPTABLES_MODULES_UNLOAD=".*|IPTABLES_MODULES_UNLOAD="no"|' $container_rootfs/etc/sysconfig/iptables-config
232 # since lxc.devttydir is specified in the config.
305 # create the container's lxc config file
308 echo "Create configuration file $cfg_dir/config"
309 mkdir -p $cfg_dir || die "unable to create config dir $cfg_dir"
311 echo "# Common configuration" >> $cfg_dir/config
313 echo "lxc.include = @LXCTEMPLATECONFIG@/sparclinux.common.conf" >> $cfg_dir/config
316 cat <<EOF >> $cfg_dir/config || die "unable to create $cfg_dir/config"
321 grep -q "^lxc.rootfs" $cfg_dir/config 2>/dev/null || echo "lxc.rootfs = $container_rootfs" >> $cfg_dir/config
323 echo "lxc.cap.drop = sys_resource" >>$cfg_dir/config
325 echo "lxc.cap.drop = setfcap setpcap" >>$cfg_dir/config
327 echo "# Networking" >>$cfg_dir/config
329 lxc_network_type=`grep '^lxc.network.type' $cfg_dir/config | awk -F'[= \t]+' '{ print $2 }'`
331 echo "lxc.network.type = veth" >>$cfg_dir/config
335 lxc_network_link=`grep '^lxc.network.link' $cfg_dir/config | awk -F'[= \t]+' '{ print $2 }'`
337 echo "lxc.network.link = lxcbr0" >>$cfg_dir/config
341 lxc_network_hwaddr=`grep '^lxc.network.hwaddr' $cfg_dir/config | awk -F'[= \t]+' '{ print $2 }'`
348 echo "lxc.network.hwaddr = $hwaddr" >>$cfg_dir/config
351 lxc_network_flags=`grep '^lxc.network.flags' $cfg_dir/config | awk -F'[= \t]+' '{ print $2 }'`
353 echo "lxc.network.flags = up" >>$cfg_dir/config
356 cat <<EOF >> $cfg_dir/config || die "unable to create $cfg_dir/config"
701 echo "Config : $cfg_dir/config"