# Rocky Linux 9 (USB Based Kickstart) Failing - Unknown Network Kickstart URL

**URL:** <https://forums.rockylinux.org/t/rocky-linux-9-usb-based-kickstart-failing-unknown-network-kickstart-url/10648>\
**Category:** Rocky Linux Help & Support\
**Created:** [July 10, 2023, 2:59pm UTC](https://forums.rockylinux.org/t/rocky-linux-9-usb-based-kickstart-failing-unknown-network-kickstart-url/10648 "2023-07-10T14:59:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccnav](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@ccnav](https://forums.rockylinux.org/u/ccnav)\
**Post date:** [July 10, 2023, 2:59pm UTC](https://forums.rockylinux.org/t/rocky-linux-9-usb-based-kickstart-failing-unknown-network-kickstart-url/10648/1 "2023-07-10T14:59:04Z")

</div>

I’m having a bit of trouble with a Rocky Linux 9 Kickstart file.  
**Error**  
`dracut-initqueue[xxxx]: Warning: unknown network kickstart URL: hd:ROCKY9-INST:/isolinux/kickstart.cfg`

**Steps I’m taking**

1. Fetch the latest ISO from Rocky’s Download URL (`Rocky-9.2-x86_64-dvd.iso`)
2. Copy it’s contents into a working dir so i can update it’s files slightly.
  1. Add a `isolinux/kickstart.cfg`
  2. Update `isolinux/isolinux.cfg` to point to kickstart file if option is selected

3. Rebuild the new `iso` i plan to use to either a DVD or or USB Drive.
4. Getting the following (for several pages):
  - `dracut-initqueue[xxxx]: Warning: unknown network kickstart URL: hd:ROCKY9-INST:/isolinux/kickstart.cfg`

5. Eventually i get to a debug prompt after an `Anaconda installer errors end` message with `Could not boot`.

So some more details to help out:

1. This `isolinux/isolinux.cfg` entry updated was:

```auto
label workstation
  menu label ^Install Rocky Linux 9.2 (Custom)
  kernel vmlinuz
  append initrd=initrd.img inst.stage2=hd:LABEL=ROCKY9-INST inst.repo=hd:ROCKY9-INST:/ inst.ks=hd:ROCKY9-INST:/isolinux/kickstart.cfg nompath ip=192.168.1.2::192.168.1.1:255.255.255.0:myhostname:enp0s3:none acpi=off

```

Some justification:
  - Assigned the label hoping to leverage it for the install [based on StackExchange Advice here for RHEL8 Kickstarts]([CentOS 8 Custom ISO - Adding `ks=cdrom:/ks.cfg` Hangs the Installer - Unix & Linux Stack Exchange](https://unix.stackexchange.com/a/641278)
  - Got [RHEL 8 Linux kickstart syntax changes (error: “reached basic target”)](https://access.redhat.com/discussions/6970317) at first and had to add an `ip:` entry just to be able to boot further into the kickstart even though i don’t need the network at all (i found that odd)
  - `acpi=off` added only because the workstation it will run on can not hibernate. This was what i used for all previous kickstarts (i went from CentOS 5, to CentOS 7, to (now) CentOS 9), so i’m still juggling all of the new/changed kickstart directives
  - `nompath` added after i got a strange crash at first (testing using virt-install right now); this seemed to resolve it.

The other thing i can share is my kickstart (just doing a basic one right now - likely missing lots of stuff). But i’m not to bothered as I can’t even get to this file yet. Still stuck in the `isolinux` conundrum above 🙁

```auto
# System Language UTF-8
lang en_US.UTF-8

# Keyboard Configuration
keyboard --vckeymap=us --xlayouts='us'

# Firewall
firewall --enabled --ssh --http

# Bootloader
# consoleblank=0 disables virtual console from blanking
bootloader --location=mbr --append="consoleblank=0 rhgb quiet crashkernel=auto"

# Logging
logging --level=info

# Root password
rootpw --iscrypted <redacted>

# User admin
user --groups=wheel,users --name=admin --password=<redacted>. --iscrypted --gecos="Account"

#System authorization infomation
auth --useshadow --passalgo=sha512

#SELinux Configuration
selinux --permissive

#Disable First Boot Startup
firstboot --disable

# Accept End User License Agreement
eula --agreed

# UTC Time
# To see all timezones, type: timedatectl list-timezones
# --utc the system is assumed to be synced to UTC
timezone UTC --utc

%addon com_redhat_kdump --disable

%end

```

Any advice on making a USB/CD based kickstart with Rocky Linux 9 would be most appreciated. I would love to know what i’m doing wrong! 🚀 🙏

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [July 10, 2023, 3:18pm UTC](https://forums.rockylinux.org/t/rocky-linux-9-usb-based-kickstart-failing-unknown-network-kickstart-url/10648/2 "2023-07-10T15:18:02Z")

</div>

My recommendation for you is to use `mkksiso` instead to add your kickstart. That command also lets you add your own kernel options if you so wish using `-c`. And then you can write the ISO to the USB using [one of the recommended tools](https://wiki.rockylinux.org/rocky/image/#notes-about-writing-the-isos).

If you insist on making changes manually, there are specific steps you have to take to rebuild it for it to work properly. You should not be changing the label for stage2 unless you’ve generated your very own stage2 image (which requires knowledge of lorax). I would look at [this post](https://forums.rockylinux.org/t/what-does-rocky-use-to-gen-iso-isolinux-cfg-boot-conf-grub-cfg-grub-conf/6701/2) to see how we make our initial images. It’s a very specific process, and thus it is why I recommend that you use `mkksiso`.

---

<div class="post-metadata">

**Author:** ![ccnav](https://avatars.discourse-cdn.com/v4/letter/c/b9e5f3/32.png) [@ccnav](https://forums.rockylinux.org/u/ccnav)\
**Post date:** [July 10, 2023, 4:32pm UTC](https://forums.rockylinux.org/t/rocky-linux-9-usb-based-kickstart-failing-unknown-network-kickstart-url/10648/3 "2023-07-10T16:32:14Z")

</div>

Thank you @label for such a fast response!

I would like to do it the custom way if possible; I prefer to know how things work then to use magic boxes with open tickets against it. You seem to be the ideal person i can ask! 🚀 🙂

It is my understanding that to add a `inst.ks` I also need an `inst.stage2` to align the mappings through the `LABEL` entry? I’m basing this off of [this guys report here](https://unix.stackexchange.com/a/641278) which I understand may not be accurate…

I tried setting up the Volume Id as you suggested:

```auto
# Extrapolate the label from the source:
isoinfo -d -i Rocky-9.2-x86_64-dvd.iso | sed -n 's/Volume id: //p'
# Rocky-9-2-x86_64-dvd
cd /root/of/dvd
mkisofs -V "Rocky-9-2-x86_64-dvd" \
      -U \
      -r \
      -v \
      -T \
      -J \
      -joliet-long \
      -A "Rocky-9-2-x86_64-dvd" \
      -b "isolinux/isolinux.bin" \
      -c "isolinux/boot.cat" \
      -no-emul-boot \
      -boot-load-size 4 \
      -boot-info-table \
      -o "/path/to/output.iso" \
      .
# implant md5
implantisomd5 "/path/to/output.iso"

```

The above still produces the same error:

 ![Screenshot_test_2023-07-10_12:27:55](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/b/b3387191a202c25aeac146bb1b469f92de8aa813.png)

Thoughts?

Edit: I got a bit further; I poorly defined the `LABEL` reference in the `isolinux.cfg` file. This appears to have fixed it:

```auto
inst.stage2=hd:LABEL=Rocky-9-2-x86_64-dvd inst.repo=hd:LABEL=Rocky-9-2-x86_64-dvd:/ inst.ks=hd:LABEL=Rocky-9-2-x86_64-dvd:/isolinux/kickstart.cfg

```

The kickstart fails, but that’s okay, at least it’s being loaded (or appears to be) which is a lot further then i was before.

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [July 11, 2023, 2:07am UTC](https://forums.rockylinux.org/t/rocky-linux-9-usb-based-kickstart-failing-unknown-network-kickstart-url/10648/4 "2023-07-11T02:07:43Z")

</div>

When I use `mkksiso` it takes a working ISO, adds the kickstart with proper modifications, and uses xorriso to finalize the ISO. This ISO also works.

As you’re doing this custom, I’m not sure how much I can further help. The only final thing I can suggest is to leave the kickstart in the root. Don’t put it in `/isolinux`.

```auto
append initrd=initrd.img inst.stage2=hd:LABEL=Rocky-9-2-x86_64-dvd inst.text quiet inst.ks=hd:LABEL=Rocky-9-2-x86_64-dvd:/rocky-9-efi.k

```
