I need to create CentOS 7.3 installation DVD with most recent 7.3 kernel version - 3.10.0-514.26.2 (I have a server with CPU which is not supported by original kernel - 3.10.0-514 - from DVD so I can't even boot from it). I'm working on it on my CentOS 7.5 installation, so I've installed 3.10.0-514.26.2 kernel and created initrd for it with
Code: Select all
mkinitrd /build_dir/initrd.img 3.10.0-514.26.2
Code: Select all
#ln -sf initrd-release $initdir/etc/os-release
{
echo 'NAME="CentOS Linux"'
echo 'VERSION="7 (Core)"'
echo 'ID="centos"'
echo 'ID_LIKE="rhel fedora"'
echo 'VERSION_ID="7"'
echo 'PRETTY_NAME="CentOS Linux 7 (Core)"'
echo 'ANSI_COLOR="0;31"'
echo 'CPE_NAME="cpe:/o:centos:centos:7"'
echo 'HOME_URL="https://www.centos.org/"'
echo 'BUG_REPORT_URL="https://bugs.centos.org/"'
echo
echo 'CENTOS_MANTISBT_PROJECT="CentOS-7"'
echo 'CENTOS_MANTISBT_PROJECT_VERSION="7"'
echo 'REDHAT_SUPPORT_PRODUCT="centos"'
echo 'REDHAT_SUPPORT_PRODUCT_VERSION="7"'
} > $initdir/usr/lib/os-release
ln -sfr $initdir/usr/lib/os-release $initdir/etc/os-release
Code: Select all
lsinitrd initrd.img | grep release
-rw-r--r-- 1 root root 151 Nov 21 09:11 etc/initrd-release
lrwxrwxrwx 1 root root 21 Nov 21 09:11 etc/os-release -> ../usr/lib/os-release
-rw-r--r-- 1 root root 392 Nov 21 09:11 usr/lib/os-release
I logged in as root, SELinux is disabled. I don't see what's wrong, please help me.