Re: [CentOS] Replacing kernel-headers with custom compiled version (from kernel.org) - safe?
On 6/26/19 4:54 PM, Bagas Sanjaya wrote: So is it safe to install kernel RPMs generated by compilation from kernel.org tarball, or should I stick to manual install? You probably don't need to install the devel package unless you plan to also build third-party kernel modules. You shouldn't need to install the headers package. The content of that package *should* be the same as the one that was provided by the vendor (CentOS), and if it is not then you would need to rebuild glibc in addition to replacing them. The same is true for "make headers_install": It shouldn't change anything, and shouldn't be necessary. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Replacing kernel-headers with custom compiled version (from kernel.org) - safe?
On 26/06/19 23.51, Akemi Yagi wrote: On Wed, Jun 26, 2019 at 5:20 AM Bagas Sanjaya wrote: Hello CentOS users, Currently I have compiled kernel version 4.19.37, which the source is from kernel.org. I compiled the kernel by following steps: - get the kernel tarball and unpack it - install prerequisties as described in https://wiki.centos.org/HowTos/Custom_Kernel (in addition bc and openssl-devel) - copy the kernel configuration: $ cp /boot/config-3.10.0-957.21.3.el7.x86_64 ~/linux-4.19.37/.config - create configuration: $ cd ~/linux-4.19.37 $ make olddefconfig $ make nconfig - compile and create RPM package: $ make vmlinux $ make modules $ make rpm-pkg - install kernel RPM: # yum install ~/rpmbuild/RPMS/x86_64/kernel-*.rpm However, in the last step (installing kernel RPM), I got following notice: PackageArch Version Repository Size Installing: kernel x86_64 4.19.37_sentinel_custom-1 /kernel-4.19.37_sentinel_custom-1.x86_64 209 M kernel-devel x86_64 4.19.37_sentinel_custom-1 /kernel-devel-4.19.37_sentinel_custom-1.x86_64 817 M kernel-headers x86_64 4.19.37_sentinel_custom-1 /kernel-headers-4.19.37_sentinel_custom-1.x86_64 4.6 M replacing kernel-headers.x86_64 3.10.0-957.21.3.el7 Transaction Summary Install 3 Packages There, the compiled kernel-headers package (4.19.37_sentinel_custom-1) is about to replace stock version (3.10.0-957.21.3.el7). Is it safe to continue installing from compiled RPM package above, or install kernel manually? In general, you want to keep the distro's kernel-headers unless you also plan to play with glibc. You may find the following article useful: https://kernelnewbies.org/KernelHeaders Akemi ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos So is it safe to install kernel RPMs generated by compilation from kernel.org tarball, or should I stick to manual install? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Replacing kernel-headers with custom compiled version (from kernel.org) - safe?
On Wed, Jun 26, 2019 at 5:20 AM Bagas Sanjaya wrote: > > Hello CentOS users, > > Currently I have compiled kernel version 4.19.37, which the source is from > kernel.org. I compiled the kernel by following > steps: > - get the kernel tarball and unpack it > - install prerequisties as described in > https://wiki.centos.org/HowTos/Custom_Kernel (in addition bc and > openssl-devel) > - copy the kernel configuration: >$ cp /boot/config-3.10.0-957.21.3.el7.x86_64 ~/linux-4.19.37/.config > - create configuration: >$ cd ~/linux-4.19.37 >$ make olddefconfig >$ make nconfig > - compile and create RPM package: >$ make vmlinux >$ make modules >$ make rpm-pkg > - install kernel RPM: ># yum install ~/rpmbuild/RPMS/x86_64/kernel-*.rpm > > However, in the last step (installing kernel RPM), I got following notice: > > PackageArch Version > Repository > Size > > Installing: > kernel x86_64 4.19.37_sentinel_custom-1 > /kernel-4.19.37_sentinel_custom-1.x86_64 > 209 M > kernel-devel x86_64 4.19.37_sentinel_custom-1 > /kernel-devel-4.19.37_sentinel_custom-1.x86_64 > 817 M > kernel-headers x86_64 4.19.37_sentinel_custom-1 > /kernel-headers-4.19.37_sentinel_custom-1.x86_64 > 4.6 M > replacing kernel-headers.x86_64 3.10.0-957.21.3.el7 > > Transaction Summary > > Install 3 Packages > > There, the compiled kernel-headers package (4.19.37_sentinel_custom-1) is > about to replace stock version > (3.10.0-957.21.3.el7). Is it safe to continue installing from compiled RPM > package above, or install kernel manually? In general, you want to keep the distro's kernel-headers unless you also plan to play with glibc. You may find the following article useful: https://kernelnewbies.org/KernelHeaders Akemi ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Replacing kernel-headers with custom compiled version (from kernel.org) - safe?
Hello CentOS users, Currently I have compiled kernel version 4.19.37, which the source is from kernel.org. I compiled the kernel by following steps: - get the kernel tarball and unpack it - install prerequisties as described in https://wiki.centos.org/HowTos/Custom_Kernel (in addition bc and openssl-devel) - copy the kernel configuration: $ cp /boot/config-3.10.0-957.21.3.el7.x86_64 ~/linux-4.19.37/.config - create configuration: $ cd ~/linux-4.19.37 $ make olddefconfig $ make nconfig - compile and create RPM package: $ make vmlinux $ make modules $ make rpm-pkg - install kernel RPM: # yum install ~/rpmbuild/RPMS/x86_64/kernel-*.rpm However, in the last step (installing kernel RPM), I got following notice: PackageArch Version RepositorySize Installing: kernel x86_64 4.19.37_sentinel_custom-1 /kernel-4.19.37_sentinel_custom-1.x86_64 209 M kernel-devel x86_64 4.19.37_sentinel_custom-1 /kernel-devel-4.19.37_sentinel_custom-1.x86_64 817 M kernel-headers x86_64 4.19.37_sentinel_custom-1 /kernel-headers-4.19.37_sentinel_custom-1.x86_64 4.6 M replacing kernel-headers.x86_64 3.10.0-957.21.3.el7 Transaction Summary Install 3 Packages There, the compiled kernel-headers package (4.19.37_sentinel_custom-1) is about to replace stock version (3.10.0-957.21.3.el7). Is it safe to continue installing from compiled RPM package above, or install kernel manually? Regards, Bagas ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos