Bug 2077045

Summary: Kickstart on partition reports error: "unknown network kickstart URL: hd:disk/by-uuid/..."
Product: Red Hat Enterprise Linux 9 Reporter: Jan Stodola <jstodola>
Component: anacondaAssignee: Jiri Konecny <jkonecny>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: chchiu, jcastran, jikortus, jkonecny, sbarcomb
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-34.25.3.7-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2211857 (view as bug list) Environment:
Last Closed: 2023-11-07 08:31:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1942219    

Description Jan Stodola 2022-04-20 14:34:07 UTC
Description of problem:
The installer prints an error when running a kickstart installation with the kickstart file on disk. Despite the error message, the kickstart file is successfully used for the installation, so it's not a blocking issue:

############## Installer errors encountered during boot ##############
unknown network kickstart URL: hd:disk/by-uuid/4bea3f40-e8f7-4990-be75-06f0cfd3ebf2:/192.168.122.236-1650464282


Version-Release number of selected component (if applicable):
RHEL-9.0
anaconda-34.25.0.29-1.el9_0

How reproducible:
Always

Steps to Reproduce:
1. Prepare a kickstart file on a disk partition.
2. Use the kickstart file during the installation (inst.ks=hd:disk/by-uuid/<UUID>:/<FILENAME>).

Actual results:
An error on the console. The kickstart file is successfully used.

Expected results:
No errors related to kickstart.

Additional info:
The error is displayed also in case of "inst.ks=cdrom:/ks.cfg" on the kernel cmdline (see bug 2178281):
"unknown network kickstart URL: cdrom:/ks.cfg"

Comment 3 Jiri Konecny 2022-05-06 08:52:39 UTC
Based on my quick look on the code it seems that we are always running fetch-kickstart-net and also fetch-kickstart-disk. The issue is that we are not able to find (correctly) the kickstart in the fetch-kickstart-net and warn user.

This seems to be just a cosmetic bug where we should look on the command line parameter and if there is prefix `hd:` then we should ignore the fetch-kickstart-net script.

Comment 5 Jiri Kortus 2022-12-01 15:15:44 UTC
Not sure if I hit the same bug, but the symptoms look similar, with the difference that in my case boot ends up in dracut emergency shell. This happens in our test where an ISO made by osbuild-composer is booted via UEFI HTTP boot. I'll attach rdsosreport, so that you can have a look if there's the same underlying cause or this is something different.

Comment 7 Jan Stodola 2022-12-05 12:50:11 UTC
Jirko, I found the following arguments on the kernel command line from comment 6, which look somehow incorrect:
... inst.updates=http://srv/anabot.img anabot=http://srv/default-partitioning.xml ...

Also "inst.ks=hd:LABEL=RHEL-9-2-0-BaseOS-x86_64:/osbuild.ks" is present twice on the kernel cmdline.

Comment 9 Jan Stodola 2023-05-04 07:04:06 UTC
*** Bug 2178281 has been marked as a duplicate of this bug. ***

Comment 10 Jan Stodola 2023-06-02 10:20:09 UTC
RHEL-8 clone: bug 2211857

Comment 12 Jiri Konecny 2023-06-02 11:32:58 UTC
This is happening also for inst.ks=cdrom.

Comment 13 Jiri Konecny 2023-06-02 12:20:53 UTC
PR: https://github.com/rhinstaller/anaconda/pull/4807

Comment 20 errata-xmlrpc 2023-11-07 08:31:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:6414