[Arm-dev] kernel-generic vs kernel-rpi2

Fabian Arrotin arrfab at centos.org
Mon Dec 4 11:51:07 UTC 2017


On 04/12/17 12:20, Kristján Valur Jónsson wrote:
>     BTW, we never had any image for rpi2/rpi3 that was using the
>     kernel-generic repo
> 
> Ok, the values are set in /etc/yum/vars.
> 
> [root at dc03 vars]# ll total 12 -rw-r--r--. 1 root root 6 Dec 5 2016 infra
> -rw-r--r--. 1 root root 8 Oct 31 10:00 kvariant -rw-r--r--. 1 root root
> 2 Sep 1 07:02 releasever
> 
> Seems that the "kvariant" was last modified end of october, probably by
> some update or other.
> I'ver reset it to 'rpi2' and hoping for the best.
> 

Yes, it's coming from centos-userland-release :
rpm -q --scripts centos-userland-release :
postinstall scriptlet (using /bin/sh):
# Detecting if rpi or generic kernel
egrep -q 'BCM2709|BCM2710' /proc/cpuinfo && echo rpi2
>/etc/yum/vars/kvariant || echo generic >/etc/yum/vars/kvariant

So normally it's detected correctly and so put the correct rpi2 value
for kvariant when installed on a rpi2/rpi3


-- 
Fabian Arrotin
The CentOS Project | https://www.centos.org
gpg key: 56BEC54E | twitter: @arrfab

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20171204/94ac1b21/attachment.sig>


More information about the Arm-dev mailing list