Bug 2132511

Summary: Network config should not be required for url install type for file:
Product: Red Hat Enterprise Linux 9 Reporter: Jeff Domogala <redhat>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.0CC: jstodola
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lorax-34.9.21-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:41:08 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:

Description Jeff Domogala 2022-10-06 02:04:25 UTC
Description of problem:
The livemedia-creator install is to a disk image. In RHEL 7 I was able to mount the install ISO in /mnt/install/repo and use the following kickstart url install method:
url --url="file:///mnt/install/repo"
With the same install method used in RHEL 9, livemedia-creator now throws the following message and exits:
The kickstart must activate networking if the url or nfs install method is used.

Version-Release number of selected component (if applicable):
lorax-34.9.14-1.el9.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create the file test.ks with just one line:
url --url="file:///mnt/install/repo"
2. Run the following command:
livemedia-creator --no-virt --make-disk --ks=test.ks --image-only --dracut-arg=--no-hostonly --image-name image.tmp

Actual results:
The command fails with the following output:
[root@localhost i95code]# livemedia-creator --no-virt --make-disk --ks=test.ks --image-only --dracut-arg=--no-hostonly --image-name image.tmp
2022-10-04 12:52:13,684: livemedia-creator v34.9.14-1
2022-10-04 12:52:13,684: selinux is Disabled
2022-10-04 12:52:13,737: The kickstart must activate networking if the url or nfs install method is used.
2022-10-04 12:52:13,737: The kickstart must activate networking if the url or nfs install method is used.


Expected results:
2022-10-04 15:45:52,314: livemedia-creator v34.9.14-1
2022-10-04 15:45:52,314: selinux is Disabled
2022-10-04 15:45:52,370: disk_img = /var/tmp/image.tmp
2022-10-05 15:45:52,370: Using disk size of 2MiB
2022-10-05 15:45:52,371: Running anaconda.
and then anaconda will continue to install if there is a valid repo located at /mnt/install/repo

Additional info:lorax-28.14.68-1
This also affects the lorax that is shipped with the current RHEL 8.6 (lorax-28.14.68-1).
I already brought this issue up with the github lorax team and they have the following PR to resolve it: https://github.com/weldr/lorax/pull/1273

Comment 2 Jan Stodola 2022-11-24 11:35:39 UTC
Reproduced with lorax-34.9.20-1.el9.
Verified with lorax-34.9.21-1.el9, 'url --url="file://..."' can be used without the network command in the kickstart file.

Marking as Verified:Tested.

Comment 5 Jan Stodola 2022-11-25 16:18:11 UTC
Checked that lorax-34.9.21-1.el9 is in nightly compose RHEL-9.2.0-20221125.1

Moving to VERIFIED

Comment 7 errata-xmlrpc 2023-05-09 07:41:08 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 (lorax 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:2267