]> git.ipfire.org Git - thirdparty/lxc.git/commit
liblxc: create a fedore template container
authorMatt Helsley <matthltc@us.ibm.com>
Sun, 8 Mar 2009 16:09:27 +0000 (17:09 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 8 Mar 2009 16:09:27 +0000 (17:09 +0100)
commit54b1eb68600edde8d54d6d43fdb9474f4ab1c4d9
treee7eff030418c255b5838f99b85b01a7628268f81
parent1e648e6539252c9c12840877bd2f716cd302da49
liblxc: create a fedore template container

On Mon, 2009-02-09 at 15:43 -0800, Dan Smith wrote:
> DL> It may be possible to use yum like debootstrap for an minbase
> DL> fedora install.
>
> Yep, something like the following should work:
>
>   root=/path/to/tmproot
>   mkdir -p $root/var/lib/rpm
>   rpm --root $root --initdb
>   rpm --root $root -Uvfh --nodeps http://fedora.osuosl.org/linux/releases/10/Fedora/i386/os/Packages/fedora-release-10-1.noarch.rpm
>   yum --installroot=$root -y groupinstall Base

Looks familiar! ;) I was intrigued by this idea last weekend so I
started such a script. However I only tested it as far as creating a
semi-correct rootfs. With the exception of network configs most of the
configs are still written as for debian. For example I know the selinux
policy enforcement settings need to move, the inittab needs to be
replaced by the proper upstart configs, etc.

Of course it's based heavily on Daniel's excellent lxc-debian script.

Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
configure.in
scripts/Makefile.am
scripts/lxc-fedora.in [new file with mode: 0644]