lxc-fedora.in revision b6e91b67178aa06eeae82bb09bd5eee2869689de
1609f0fbe1407e083f612a25475de2cb6b9954f7gza# template script for generating fedora container for LXC
cae3584efccc63f544c8748bd13d80e11bc79aefgza# lxc: linux Container library
bc19636d587fbabfbc2252f1bf4887fee87bb247Dennis Schridde# Daniel Lezcano <daniel.lezcano@free.fr>
cae3584efccc63f544c8748bd13d80e11bc79aefgza# This library is free software; you can redistribute it and/or
cae3584efccc63f544c8748bd13d80e11bc79aefgza# modify it under the terms of the GNU Lesser General Public
cae3584efccc63f544c8748bd13d80e11bc79aefgza# License as published by the Free Software Foundation; either
cae3584efccc63f544c8748bd13d80e11bc79aefgza# version 2.1 of the License, or (at your option) any later version.
cae3584efccc63f544c8748bd13d80e11bc79aefgza# This library is distributed in the hope that it will be useful,
cae3584efccc63f544c8748bd13d80e11bc79aefgza# but WITHOUT ANY WARRANTY; without even the implied warranty of
cae3584efccc63f544c8748bd13d80e11bc79aefgza # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cae3584efccc63f544c8748bd13d80e11bc79aefgza# Lesser General Public License for more details.
cae3584efccc63f544c8748bd13d80e11bc79aefgza# You should have received a copy of the GNU Lesser General Public
cae3584efccc63f544c8748bd13d80e11bc79aefgza# License along with this library; if not, write to the Free Software
cae3584efccc63f544c8748bd13d80e11bc79aefgza# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
cache=$1
arch=$2
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
cache=$1
arch=$2
rootfs=$3
rootfs=$1
flock -n -x 200
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
path=$1
rootfs=$2
name=$3
if [ $? -ne 0 ]; then
if [ ! -e $cache ]; then
flock -n -x 200
cat <<EOF
eval set -- "$options"
type febootstrap
if [ -z "$path" ]; then
if [ ! -z $clean ]; then