[Yum] --installroot error
Bob Kashani
bobk at ocf.berkeley.edu
Fri Feb 25 07:25:01 UTC 2005
On Wed, 2005-02-23 at 19:25 -0500, seth vidal wrote:
> On Wed, 2005-02-23 at 12:45 -0800, Bob Kashani wrote:
> >Okay, I got everything to work now with yum-2.2.0. :)
> >
> >Attached is my script to install (FC3) "Base" into an empty dir via
> >yum-2.2.0. It's pretty straight forward and simple but I figured it
> >might save someone some time.
> >
> >Thanks again, Seth for helping me figure this out.
> >
>
> cool, thanks:
> comments on your script:
>
> 1. edit your conf file so it doesn't have any $releasever in it and you
> won't need to install fedora-release first.
Knew that already. :) But I like the flexibility of being able to
install the release.rpm that I want into the chroot. This way I can pick
which release I want to install. It works better for my situation.
> 2. use the gpgkey= option for repositories and yum will import gpg keys
> into the rpmdb for you.
Cool. Unfortunately it doesn't seem to work when using --installroot :(
I get this error:
Setting up Install Process
Setting up Repos
base 100% |=========================| 1.1 kB
00:00
updates-released 100% |=========================| 951 B
00:00
extras 100% |=========================| 951 B
00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
primary.xml.gz 100% |=========================| 292 kB
00:01
MD Read : ################################################## 678/678
updates-re: ################################################## 678/678
extras : ################################################## 890/890
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package Hermes-devel.i386 0:1.3.3-6 set to be updated
--> Running transaction check
--> Processing Dependency: Hermes = 0:1.3.3-6 for package: Hermes-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package Hermes.i386 0:1.3.3-6 set to be updated
--> Running transaction check
Dependencies Resolved
Transaction Listing:
Install: Hermes-devel.i386 0:1.3.3-6 - extras
Performing the following to resolve dependencies:
Install: Hermes.i386 0:1.3.3-6 - extras
Total download size: 174 k
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 1ac70ce6
public key not available for Hermes-1.3.3-6.i386.rpm
Retrieving GPG key from
http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-
Fedora-Extras
The GPG key at
http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-
Fedora-Extras (0x1AC70CE6)
is already installed but is not the correct key for this package.
Check that this is the correct key for the "Fedora Extras - 3 - i386"
repository.
I checked with rpm --root $PWD/../INSTALL -q gpg-pubkey and it seems
that it doesn't actually install the gpgkey???
If I rpm --import the gpgkey into the chroot myself then everything
works.
> 3. if you want to avoid problems with scripts/triggers on install you
> can add:
> tsflags=noscripts notriggers
> to your [main] in your yum.conf - it will keep %scripts and triggers
> from your rpms from running.
Cool. But I get lots of user/group blah does not exist warnings. Not
really a big deal though. I guess I can just add the user/groups myself.
> 4. you shouldn't _HAVE_ to make /dev/null - you can even bind
> mount /dev/ in if you need to.
Heh...thanks.
> 5. don't forget the mount for /selinux
Umm...mounting /selinux in the chroot causes all kinds of problems. I
get all kinds of AVC errors all over the place and things go really
squirrelly. :( Things seem to work fine without it though so no biggie.
> 6. if you're doing this on x86_64 for x86 you can run 'setarch i686'
> first to make it believe it is an i686 system.
Thanks, I'll keep that one in mind. :)
Bob
--
Bob Kashani
http://www.ocf.berkeley.edu/~bobk/garnome
More information about the Yum
mailing list