View Issue Details

IDProjectCategoryView StatusLast Update
0000432Rocky-Linux-9loraxpublic2023-07-31 23:44
ReporterJeff Domogala Assigned ToLouis Abel  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSRocky LinuxOS Version9.0
Summary0000432: Network config should not be required for url install type for file:///
DescriptionThe lorax package I have installed is lorax-34.9.14-1.el9.x86_64.
The livemedia-creator install is to a disk image. In CentOS 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 Rocky 9, livemedia-creator now throws the following message and exits:
The kickstart must activate networking if the url or nfs install method is used.
Steps To Reproduce1 - 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
3 - The command will fail with output similar to the following:
[root@rocky9 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.
Additional InformationThe source of this message is in /usr/lib/python3.9/site-packages/pylorax/creator.py
A workaround patch I am using is:
[root@rocky9 pylorax]# diff /usr/lib/python3.9/site-packages/pylorax/creator.py.orig /usr/lib/python3.9/site-packages/pylorax/creator.py
609,611c609,611
< if ks.handler.method.method in ("url", "nfs") and not ks.handler.network.seen:
< errors.append("The kickstart must activate networking if "
< "the url or nfs install method is used.")
---
> # if ks.handler.method.method in ("url", "nfs") and not ks.handler.network.seen:
> # errors.append("The kickstart must activate networking if "
> # "the url or nfs install method is used.")
TagsNo tags attached.

Activities

Louis Abel

Louis Abel

2022-10-04 17:26

administrator   ~0000661

The change they made here is likely deliberate. See this: https://github.com/weldr/lorax/issues/164

I think it would be better to post the question to the lorax folks and get clarification on how to work with local file repositories. As far as I understand it, you can't use "repo" by itself, you need both url and repo, and url in lorax (since about 4 years ago) expects networking to be enabled.
Jeff Domogala

Jeff Domogala

2022-10-06 02:12

reporter   ~0000663

Lorax issue opened: https://github.com/weldr/lorax/issues/1272
Resulting PR: https://github.com/weldr/lorax/pull/1273
Bug opened against RHEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2132511
Louis Abel

Louis Abel

2022-10-06 02:34

administrator   ~0000664

Thank you for the info! I'm always glad to see how quick they are to respond. I'll keep this ticket open.

Issue History

Date Modified Username Field Change
2022-10-04 16:58 Jeff Domogala New Issue
2022-10-04 17:26 Louis Abel Assigned To => Louis Abel
2022-10-04 17:26 Louis Abel Status new => needinfo
2022-10-04 17:26 Louis Abel Note Added: 0000661
2022-10-06 02:12 Jeff Domogala Note Added: 0000663
2022-10-06 02:34 Louis Abel Status needinfo => acknowledged
2022-10-06 02:34 Louis Abel Note Added: 0000664
2023-07-31 23:44 Louis Abel Status acknowledged => closed
2023-07-31 23:44 Louis Abel Resolution open => fixed