/root/anaconda-ks.cfg does not contain "url"

I am using a boot ISO to install Rocky Linux, and I want to use a kickstart file to exclude some bloated software packages.

  1. I found that the kickstart file generated by the standard installation does not include the installation source configuration. Is this an error?

  2. In a custom kickstart, without setting the installation source, the “closest mirror” option cannot be used.
    To set the installation source through the “url” command, what is the equivalent setting to “closest mirror”?

  3. In RHEL, there is the ‘rhsm’ command, which allows easy configuration of the installation source as RedHat CDN. What is the equivalent in Rocky?

upstream
https://bugzilla.redhat.com/show_bug.cgi?id=972265
https://bugzilla.redhat.com/show_bug.cgi?id=927625
https://bugzilla.redhat.com/show_bug.cgi?id=973808