Quoting Johannes Graumann (johannes_graum...@web.de): > On Wednesday, July 25, 2012 14:36:16 Serge Hallyn wrote: > > Quoting Johannes Graumann (johannes_graum...@web.de): > > > Fajar A. Nugraha wrote: > > > > On Tue, Jul 24, 2012 at 4:20 AM, Fajar A. Nugraha > > > > > > > > <l...@fajar.net> wrote: > > > >> On Mon, Jul 23, 2012 at 6:15 PM, Johannes Graumann > > > >> > > > >> <johannes_graum...@web.de> wrote: > > > >>> On the container "/var/lib/rpm is now empty > > > >> > > > >> That is not right. It might be the source of your problem. Try > > > >> > > > >> yum --installroot=/some/path/of/your/choice groupinstall base > > > >> > > > >> ... and verify whether /var/lib/rpm under that path has some files (it > > > >> should). Just to check whether the problem is in your template, or in > > > >> your version of yum. > > > > > > > > I think I know what happens. > > > > > > > > Debian/Ubuntu's version of yum stores rpm database in /root/.rpm (when > > > > run as root). RHEL/Centos expects the db to be on /var/lib/rpm. Thus > > > > the problem. > > > > > > > > You can simply (in chroot or container) move all content in /root/.rpm > > > > to /var/lib/rpm, and the run "rpm --rebuilddb" . > > > > > > > > Strangely enough, eventhough your install process installs > > > > "filesystem" as a dependency, yum won't complain much if you can run > > > > "yum erase filesystem" inside the chroot environment :P. Not > > > > recommended though. > > > > > > For the benefit of others (the mailing list refused my email replies in > > > much of this conversation): this problem is solved by doing the > > > following as root on the container: > > > > > > PROMPT> cp -r /root/.rpmdb/* /var/lib/rpm/ > > > PROMPT> rpm --define '_dbapi 3' --rebuilddb > > > > Thanks for the info, Johannes. > > > > Would you be interested in creating a proper > > /usr/lib/lxc/templates/lxc-centos template (which would check for this > > condition)? You said you used an openvz template to start right? > > I used the lxc-fedora template that comes with debian(testing) ... I will try > to put this check in there and report back ... there are some more > configuration issues that I am currently resolving manually after > installation, > so this may take some time ...
Awesome, thanks. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users