RPM Community Forums

Mailing List Message of <rpm-users>

Re: I killed my RPMDB --- any rescue possible?

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Mon 13 Jun 2011 - 17:29:06 CEST
Message-Id: <201106131529.06798.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 13 June 2011, Jeff Johnson <n3npq@mac.com> wrote:
> On Jun 13, 2011, at 11:05 AM, Eric MSP Veith wrote:
> > What's the preferred way to initially populate a chroot?
> 
> The only difference in rpm-5.3 related ro your issue
> is running dbconvert.sh in %posttrans.

I wasn't refering to rpm5/dbconvert.sh in that paragraph of mine, but 
considering that I chose a wrong approach in the past with populating 
chroots _in general_. Sorry if I didn't express myself clearly. I do not 
trust dbconvert.sh to automagically find out whether a RPMDB needs 
converting or not, hence I do not call it from rpm's %post.

What I wanted to ask was: Considering installing RPM packages into a system 
initially, such as it often happens when creating a build chroot, what's the 
best approach one can choose here? 

> Everything is _EXACTLY_ as has always been implemented with
> rpm and chroot(2). There are no changes:
> 	A script/executable invoked while installing with rpm -r
> 	can escape a chroot and do whatever it wishes.

Sure, in that case I gladly eat my hat or do something similar as to punish 
myself for my own stupidity since I'm the one creating %post & co.  :-)

TIA,

			Eric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQIcBAEBAgAGBQJN9izCAAoJEIXD2TZ1epVB32wP/R437nRb6P//wpz5FYncHGaU
V+dSOw+enqnpZbi7JDUahzBLK9i4mSVWCC0I0fk8U1HgN7NzoBcYBQokg+aKmv5e
GIm+6ngv5dAaT1ldVvENwxxR4HNRF9znnTs8OnRTLjF4rbwDowUGaPph8iuoY8Me
TbW960eceygAPXhdpxCcu/imSkEBvubvqbXGt1pbpQZ+/iWucKq6N7KXCIFnWG+X
i+UabOOHAq2wpGFFdxrK+Zmx4iMBYGcDLXj37m4LplW6OAZHE33ScjdJLAhF0VLr
H/ZrCTKe6wctoHa6ccAacvYhXt7hahDKVoyDZNkVNFXV775rZMLqBv4JbYfH4bXZ
XTxVGJjQ0PwoQmAsd8wnvo5daHji36eVRHUlGE75onnYlgIBiXG4KkEvlhewDymU
LQD0TeP0bh5w6XMinoHe4+X+9gzEG4SqOlFm2XTQT3Hq5HHFkRRz5u95VT2LMmK+
pfZ4xa3TwiJ8bCQuou8p/cqP0fgAf8arJvAOeJN5unCG3lm5fXaqylgCFdaGIZKv
QrB0aE7eGe0/IVm9YApRp0+YgiG7IVX71vOf3VeAM3aqsDboZznewusLUsYxconc
DGN8Q6uL35A0V0SK/1c37WSnEBwF74nNR7/atfHYH6VjvfMblq8zckuUAypm5P6L
WjkrAecFM3+P4cHEgVdl
=Wa84
-----END PGP SIGNATURE-----
Received on Mon Jun 13 17:29:10 2011
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.