View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000140 | AlmaLinux-8 | -OTHER | public | 2021-10-31 06:27 | 2021-11-01 12:29 |
Reporter | kfujinaga | Assigned To | alukoshko | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | Virtuozzo Hybrid Server | OS | CentOS | OS Version | 8.4 |
Summary | 0000140: almalinux-deploy: almalinux-deploy install unnecessary kernel packages in the Virtuozzo/OpenVZ container enviroments. | ||||
Description | In the Virtuozzo/OpenVZ container enviroments, each container use host's kernel. So kernel packages are not installed in the container. But almalinux-deploy install kernel packages at the migration. These packages are unnecessary and are not used. # NOTE: The migration was successful, and AlmaLinux container works fine. On the other hand, the migration tools of Rocky Linux and CentOS Stream doesn't install kernel packages in the Virtuozzo/OpenVZ container enviroments. Unnecessary kernel packages cause a misunderstanding for users. So I want you to fix this problem. | ||||
Steps To Reproduce | Run almalinux-deploy in the Virtuozzo/OpenVZ container enviroments. 1. Check enviroment before migration ------------ [root@fujinaga-test ~]# uname -a Linux fujinaga-test 4.18.0 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux [root@fujinaga-test ~]# cat /etc/redhat-release CentOS Linux release 8.4.2105 [root@fujinaga-test ~]# ls /boot/ efi grub2 [root@fujinaga-test ~]# ls /lib/modules [root@fujinaga-test ~]# rpm -qa |grep kernel [root@fujinaga-test ~]# ------------ No kernel package is installed. 2. Run almalinux-deploy ------------ [root@fujinaga-test ~]# bash almalinux-deploy.sh ... Complete! Run dnf distro-sync -y OK Restoring of alternatives is done OK Install AlmaLinux kernel OK Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.18.0-305.19.1.el8_4.x86_64 Found initrd image: /boot/initramfs-4.18.0-305.19.1.el8_4.x86_64.img done grep: /boot/grub2/grubenv: No such file or directory All Secure Boot related packages which were released by not AlmaLinux are reinstalledOK Migration to AlmaLinux is completed ------------ Migration is completed. But following message is outputed. "grep: /boot/grub2/grubenv: No such file or directory" 3. Check enviroment after migration ------------ [root@fujinaga-test ~]# uname -a Linux fujinaga-test 4.18.0 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64 x86_64 x86_64 GNU/Linux [root@fujinaga-test ~]# cat /etc/redhat-release AlmaLinux release 8.4 (Electric Cheetah) [root@fujinaga-test ~]# ls /boot/ System.map-4.18.0-305.19.1.el8_4.x86_64 config-4.18.0-305.19.1.el8_4.x86_64 efi grub2 initramfs-4.18.0-305.19.1.el8_4.x86_64.img loader vmlinuz-4.18.0-305.19.1.el8_4.x86_64 [root@fujinaga-test ~]# ls /lib/modules 4.18.0-305.19.1.el8_4.x86_64 [root@fujinaga-test ~]# rpm -qa |grep kernel kernel-core-4.18.0-305.19.1.el8_4.x86_64 kernel-4.18.0-305.19.1.el8_4.x86_64 kernel-modules-4.18.0-305.19.1.el8_4.x86_64 [root@fujinaga-test ~]# ------------ Kernel packages are installed. These kernel packages are unnecessary. If the container is restarted, the container use host's kernel. | ||||
Tags | No tags attached. | ||||
abrt_hash | |||||
URL | |||||