[lxc-devel] [PATCH] lxc-opensuse template now understands release arguments (was: openSUSE template still at 12.3?)

Johannes Kastl mail at ojkastl.de
Thu Nov 6 15:24:40 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Michael,
hi list,

On 30.10.2014 Michael H. Warfield wrote:

> Most of the templates (Ubuntu, Debian, Fedora, CentOS, Oracle)
> allow for version selection.  If OpenSuSE does not (which it
> apparently does not - I just looked), that is something that needs
> to be addressed.  I think they all suffer from the problem that
> they, by default, install a fixed version and don't track "the
> latest" or "the latest supported", which can be an indeterminant
> value.

Please find attached my patch to enable release selection in the
openSUSE template.

As I cannot (yet) test the template that is in upstream HEAD, my patch
is against the stable-1.0 branch.

Basically it boils down to this:

- - cache is in /var/cache/lxc/opensuse/$DISTRO
- - DISTRO is not set at the beginning, but via argument -r 12.3 or
- --release 13.1 (like the ubuntu template does it)
- - if no -r or --release argument is given, 12.3 is installed (as was
the default before)

13.2 works, but needs two small workarounds:
- - python3-base is added explicitly, otherwise you get an havechoice
error as two packages provide the capability
- - there is no noarch directory in the update repository, but creating
it seemed easier than splitting this monster of a command in version
13.2 and earlier

I tested this with 12.3, 13.1 and 13.2, and all of them worked. At
least creating the container worked. I still have to test if the 13.2
container works, as some networking stuff changed between 13.1 and 13.2.

Comments and Hints highly appreciated.

Regards,
Johannes

P.S.: How would I test the upstream HEAD? I see there has been a lot
of work done in the openSUSE template, but only in master branch, not
in 1.0.x.
- -- 
`Three Dementor attacks in a week, and all Romilda Vane does is ask me
if it's true you've got a Hippogriff tattooed across your chest´ [...]
`I told her it's a hungarian Horntail,´ said Ginny, turning a page of
her newspaper idly.`Much more Macho´ (Ginny Weasley in Harry Potter 6)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEYEARECAAYFAlRbkrgACgkQzi3gQ/xETbIIaQCeKWJ+OLbFPpuxB8t3l1AgS7tv
eFAAniXPSTrhihIExlLYm/fLiRHZDCDi
=st8m
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lxc-opensuse-template-now-understands-release-argume.patch
Type: text/x-patch
Size: 3463 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20141106/7f07f5c2/attachment.bin>


More information about the lxc-devel mailing list