View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000432 | Rocky-Linux-9 | lorax | public | 2022-10-04 16:58 | 2022-10-06 02:34 |
Reporter | Jeff Domogala | Assigned To | Louis Abel | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Platform | x86_64 | OS | Rocky Linux | OS Version | 9.0 |
Summary | 0000432: Network config should not be required for url install type for file:/// | ||||
Description | The 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 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 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 Information | The 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.") | ||||
Tags | No tags attached. | ||||
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. |
|
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 |
|
Thank you for the info! I'm always glad to see how quick they are to respond. I'll keep this ticket open. | |
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 |