[Lxc-users] lxc-centos/lxc-rhel?

Michael H. Warfield mhw at WittsEnd.com
Mon Sep 30 16:23:19 UTC 2013


On Mon, 2013-09-30 at 12:14 -0400, Dwight Engen wrote: 
> On Sat, 28 Sep 2013 09:52:15 +0700
> "Fajar A. Nugraha" <list at fajar.net> wrote:
> 
> > On Sat, Sep 28, 2013 at 3:03 AM, Michael H. Warfield
> > <mhw at wittsend.com>wrote:
> > 
> > > On Fri, 2013-09-27 at 10:38 +0700, Fajar A. Nugraha wrote:
> > > > In particular, it solves the problem of mismatched rpmdb version
> > > > (i.e. when installing centos5 on latest ubuntu) by doing "yum
> > > > install" twice.
> > >
> > > I accomplished that with an "rpm --rebuilddb" sortly after
> > > installing the minimal packages.
> > >
> > >
> > 
> > Unfortunatey using JUST that didn't work last time I tested installing
> > Centos 5 from Ubuntu 12.04. So what I did was:
> > - move rpmdb location to the correct place (Ubuntu put this in
> > $HOME/.rpmdb)
> > - try rpm --rebulddb
> > - test with yum
> > - if yum still complains, then reinstall a new environment using
> > yum/rpm from the temporary environment.

> Hi guys, just wanted to mention in case it helps is that the way I
> solved the db version mismatch in the oracle linux template was to
> use db_dump | db_load.

Nice.  I've been trying "rpm --initdb" followed by "rpm --rebuilddb"
that seems to cover the vast majority of the cases but I wasn't aware of
those commands.  That might be another idea.

BTW...  While I have your attention...

The Oracle Linux template worked well on Fedora.  Will it work on other
distros like Arch, Alt, or Suse which doesn't have a (compatible)
version of yum/rpm?  That's one of my major take-aways from Linux
Plumbers, to tub thump the message that these templates need to be as
distro agnostic as possible.  I think I now have the Fedora template in
pretty good shape and will be posting a patch for that in the next day
or two (after reviewing your suggestions).

Many thanks!

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130930/2b23f01e/attachment.pgp>


More information about the lxc-users mailing list