Something has changed in v9. With AlmaLinux 8, I used to disable IPv6 and auto-rename of the network adapter with the following commands but they do not work with v9.
Show kernelopts:
grub2-editenv - list | grep kernelopts
Add options:
grub2-editenv - set "$(grub2-editenv - list | grep kernelopts) net.ifnames=0 ipv6.disable=1"
How do you modify the boot parameter in AlmaLinux 9?
i tend to use grubby these days, its much easier when adding/removing parameters than fiddling with /etc/default/grub (especially if youâre using ansible!) and no need to update grub or worry about /boot/loader/entries and uefi/bios, just reboot (and kernelopts is definitely deprecated in v9):
grubby --update-kernel ALL --args 'net.ifnames=0'
grubby --info=DEFAULT
grubby --update-kernel ALL --remove-args='ipv6.disable=1'