Bug 1991449

Summary: [RFE] support "filename" DHCP option for network boot with nm-initrd-generator
Product: Red Hat Enterprise Linux 8 Reporter: Beniamino Galvani <bgalvani>
Component: dracutAssignee: Pavel Valena <pvalena>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: acardace, anaconda-maint-list, bgalvani, dcbw, desktop-qa-list, dracut-maint-list, dtardon, extras-qa, fge, fsumsal, jonathan, jstodola, kellin, lkundrak, lrintel, mclasen, pvalena, rkhan, rstrode, rvykydal, sukulkar, thaller, thiebolt, till, vanmeeuwen+fedora, vbenes, vponcova, vslavik, wwoods
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-049-221.git20221214.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1979387
: 1991823 (view as bug list) Environment:
Last Closed: 2023-05-16 09:08:49 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: 1900502, 1979387    
Bug Blocks: 1991516, 1991823    

Description Beniamino Galvani 2021-08-09 07:53:09 UTC
Once merged, please backport the patch at:

https://github.com/dracutdevs/dracut/pull/1581

to support changing the kickstart filename via DHCP.

+++ This bug was initially created as a clone of Bug #1979387 +++

+++ This bug was initially created as a clone of Bug #1900502 +++

See details at bug 1900502.

--- Additional comment from Radek Vykydal on 2021-07-27 10:21:47 CEST ---

For the record, using the installer feature from the upstream original of the BZ - bug 1900502 - which is path to kickstart defined via dhcp filename option for "inst.ks" installer boot option requires patch in Anaconda (upstream: https://github.com/rhinstaller/anaconda/pull/3541).

Comment 12 Jan Stodola 2022-11-15 16:27:53 UTC
Hi Pavel,
what is the status of this bug? Anaconda bug 1991516 depends on this one. Could you please move this bug forward?
Thanks

Comment 13 Pavel Valena 2022-11-16 17:25:38 UTC
(In reply to Jan Stodola from comment #12)
> Hi Pavel,
> what is the status of this bug? Anaconda bug 1991516 depends on this one.
> Could you please move this bug forward?
> Thanks

Hello,

I just set too optimistic ITM and forgot to re-evaluate. This is still planned for RHEL 8.8.0.

Pavel

Comment 16 Pavel Valena 2022-12-06 19:26:01 UTC
Created as a PR: https://github.com/redhat-plumbers/dracut-rhel8/pull/20

Comment 20 Jan Stodola 2023-01-02 13:57:12 UTC
I used dracut-049-221.git20221214.el8 when pre-verifying anaconda part (bug 1991516) of this problem and I can confirm it fixes the problem.

/tmp/dhclient.enp1s0.dhcpopts and /tmp/net.enp1s0.dhcpopts contain the expected "filename" option:

pre-pivot:/# cat /tmp/dhclient.enp1s0.dhcpopts
new_next_server=192.168.100.1
filename=/custom_kickstart/ks.cfg
pre-pivot:/#

Comment 28 errata-xmlrpc 2023-05-16 09:08:49 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 (dracut 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:2994