NethServer / arm-dev

nethserver-arm issue tracker
10 stars 3 forks source link

Mirror for arm kernels are missing #40

Closed markVnl closed 4 years ago

markVnl commented 4 years ago

the kernels for arm are living in different (centos) repositories

RPI(4): http://mirror.centos.org/altarch/7/kernel/armhfp/kernel-rpi2/ and http://mirror.centos.org/altarch/7/kernel/aarch64/kernel-rpi2/ generic http://mirror.centos.org/altarch/7/kernel/armhfp/kernel-generic/ and http://mirror.centos.org/altarch/7/kernel/aarch64/kernel-generic/

(nethserver) system-init disables the default CentOS-xxx.repo entry's

# cat /etc/yum.repos.d/CentOS-armhfp-kernel.repo
[centos-kernel]
name=CentOS LTS Kernels for $basearch
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=kernel-kernel-$kvariant&infra=$infra
#baseurl=http://mirror.centos.org/altarch/7/kernel/$basearch/kernel-$kvariant
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32

[centos-kernel-experimental]
name=CentOS Experimental Kernels for $basearch
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=experimental-kernel-$kvariant&infra=$infra
#baseurl=http://mirror.centos.org/altarch/7/experimental/$basearch/kernel-$kvariant
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32

Meaning the kernel is never updated.

Possible solutions:

  1. enable [centos-kernel] somehow; at point releases it may happen we get a kernel newer as the rest of the root-fs. This is not problematic
    or
  2. include a arch-conditional un-locked (i.e. pointing to mirror.centos.org) repo entry in Nethserver.repo template. ( basically doing 1. within the template) or
  3. include the kernel mirrors in nethserver's version-lock method and include a arch-conditional repo entry in Nethserver.repo template.


cc/ @DavidePrincipi

EDIT: Same applies to aarch64

markVnl commented 4 years ago
1. enable [centos-kernel] somehow; at point releases it may happen we get a kernel newer as the rest of the root-fs. This is not problematic

This "somehow" turns out to be adding a template sippet for /etc/nethserver/eorepo.conf to add centos-kernel to the always enabled repos list.

markVnl commented 4 years ago

QA yum install nethserver-arm-extra-config

enabled [centos-kernel] repo by editing/etc/yum.repos.d/CentOS-armhfp-kernel.repo

signal-event software-repos-save

check result:

cat /etc/nethserver/eorepo.conf
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
#
# This file is read by software-repos-save event
#
# Listed repositories will be enabled, everything else will be disabled
#
# Blank lines and lines beginning with "#" are ignored
#
ce-base
ce-updates
ce-extras
ce-sclo-rh
ce-sclo-sclo
epel
nethserver-base
nethserver-updates
nethforge
centos-kernel
cat /etc/yum.repos.d/CentOS-armhfp-kernel.repo
[centos-kernel]
name=CentOS LTS Kernels for $basearch
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=kernel-kernel-$kvariant&infra=$infra
#baseurl=http://mirror.centos.org/altarch/7/kernel/$basearch/kernel-$kvariant
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
       file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-AltArch-Arm32


OK:

markVnl commented 4 years ago

package nethserver-arm-extra-config-1.0.0-1.ns7.armv7hl.rpm released in updates package nethserver-arm-extra-config-1.0.0-1.ns7.aarch64.rpm released in updates

(ping #38)