IBM / ibmichroot

A set of scripts to facilitate the use of chroot-based containers for IBM i
MIT License
22 stars 10 forks source link

/QOpenSys/etc/yum/repos.d should be copied into chroots as part of "minimal" #52

Open abmusse opened 6 years ago

abmusse commented 6 years ago

Original report by Jesse G (Bitbucket: ThePrez, GitHub: ThePrez).


I feel it is a defect that /QOpenSys/etc/yum/repos.d is not included as part of the "minimal" chroot setup. If yum is installed into the new chroot, yum will fail inside the chroot with:

There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>

Assigning to @aaronbartell to comment on whether this is truly a defect or not, or if this is by design

abmusse commented 6 years ago

Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).


I don't know if I've installed yum inside a chroot. I always modify a chroot's packages with yum --installroot=/QOpenSys/mychroot1 install somepkg Many customers pre-create the chroots and have the developers auto log into them via HOMEDIR alteration. This is so they don't need to give *ALLOBJ or *IOSYSCFG authority.

With all that said, I don't think we should add it to minimal.lst because then we'd need a separate minimal that didn't have it; one that was actually "minimal". Better to create wrapper .lst files that would include minimal.lst as part of their install.

kadler commented 4 years ago

This should probably be handled as an rpm package that we ship that provides those repo files, similar to the fedora-repos package on Fedora. If yum required it, then they would automatically get pulled in.