Correct.  I do have a line in my ks file:

url --url="http://dl.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/"


I'm glad you figured it out.

jorgy



On Monday, May 1, 2023 at 06:22:23 AM MDT, Jos Vos <jos@xos.nl> wrote:


Hi,

On Sun, Apr 30, 2023 at 01:27:57AM +0000, Eric Jorgensen wrote:

  I use ansible to read a var file and then create a kickstart file
  and command to execute remotely.    It ends up looking something
  like this:

  [...]

Thanks for your answer, but this is what I already did, using an
existing kickstart file.  When installing, it then stucks after
"Starting dracut initqueue hook", after some timeout followed by a
loop of errors, where (a.o.) it complains about a missing stage2.img.

But in the meantime I found the solution: either add "inst.repo=..."
to the --extra-args or add an "url ..." entry in the kickstart file,
with the base os URL (I guess you have that "url" entry in your ks).
Now it works, both for Rocky 8 and 9.

For CentOS (8 and 9) neither of these extra url's are necessary,
what caused the confusion.  Probably their imstall media are
slightly different.

Anyway, thanks,

--
--    Jos Vos <jos@xos.nl>
--    X/OS Experts in Open Systems BV  |  Office: +31 20 6938364
--    Amsterdam, The Netherlands        |  Mobile: +31 6 26216181