LEAPP ile centos7 lerimizi Almalinux 8 e yukseltelim mi ?
1-
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://el7.repo.almalinux.org/centos/CentOS-Base.repo
sudo yum upgrade -y
sudo reboot
2-
sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
3-
sudo yum install -y leapp-upgrade leapp-data-almalinux
4-
leapp preupgrade
Burada cesitli olaylar olacak oncelikle sirayla bunlari yapalim
sudo rmmod pata_acpi
echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config
sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
sonra kernel devel cok var dedi eski kernelleri silelim
yum install yum-utils
package-cleanup --oldkernels --count=1
sonra gene hata verdi bir sunucuda vermemesi gerekirdi
bunlari yaptim
Title: Leapp detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed. Summary: Support for the following RHEL 7 device drivers has been removed in RHEL 8:
lsmod | grep -q pata_acpi && rmmod pata_acpi
lsmod | grep -q floppy && rmmod floppy
sonra python3 eyvah dedi
alternatives - set python /usr/bin/python3
ya da buda olabilir ki oldu
Leapp upgrade error caused by important modules from kernel drivers
cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.backup
dracut -N -f
dracut -f --regenerate-all
5-
leapp upgrade
6-
sorunsuz biterse eger kontrol et
cat /etc/redhat-release
cat /etc/os-release
uname -a
EKLER MESELA?
reboot ettik network kartinin adi degisti.
nmtui ile yeni karta ip tanimladiktan sonra
directadmin.conf icinden ens18 yaptik mesela calisti bla bla.
sonrasinda kontrol hersey calisiyor gibi...