Bug 1897657

Summary: Show warning message when deprecated boot argument is used
Product: Red Hat Enterprise Linux 8 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: Shweta Naresh <sjalgaon>
Priority: unspecified    
Version: 8.3CC: jkonecny, pzatko, rvykydal, sdubewar, sjalgaon
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-33.16.4.9-1 Doc Type: Enhancement
Doc Text:
.Warnings for deprecated kernel boot arguments Anaconda boot arguments without the `inst.` prefix (for example, `ks`, `stage2`, `repo` and so on) are deprecated starting RHEL7. These arguments will be removed in the next major RHEL release. With this release, appropriate warning messages are displayed when the boot arguments are used without the `inst` prefix. The warning messages are displayed in `dracut` when booting the installation and also when the installation program is started on a terminal. Following is a sample warning message that is displayed on a terminal: Deprecated boot argument `ks` must be used with the `inst.` prefix. Please use `inst.ks` instead. Anaconda boot arguments without `inst.` prefix have been deprecated and will be removed in a future major release. Following is a sample warning message that is displayed in `dracut`: `ks` has been deprecated. All usage of Anaconda boot arguments without the `inst.` prefix have been deprecated and will be removed in a future major release. Please use `inst.ks` instead.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:47:13 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: 1879091, 1903942    

Description Jan Stodola 2020-11-13 17:31:11 UTC
Description of problem:
The installer should warn the user when a deprecated anaconda boot argument is used. See warning messages from the current Rawhide as an example:

....
[    5.883298] dracut-cmdline[279]: Warning: 'dns' is deprecated. Using 'nameserver=4.0.9.6' instead.
...
Starting installer, one moment...
16:05:07 Boot argument 'text' is deprecated and will be removed in the future. Please use 'inst.text' instead.
anaconda 34.10-1.fc34 for Fedora Rawhide (pre-release) started.
...

Version-Release number of selected component (if applicable):
RHEL-8.3 GA
anaconda-33.16.3.26-1.el8

How reproducible:
Always

Steps to Reproduce:
1. Start the installation using a deprecated anaconda boot argument (for example "text dns=4.0.9.6")

Actual results:
Lack of warning messages displayed to the user.

Expected results:
Warning messages are printed for deprecated boot arguments, like in the Rawhide example above.

Comment 4 Jiri Konecny 2021-01-25 11:05:17 UTC
PR: https://github.com/rhinstaller/anaconda/pull/3117

Comment 5 Petr Zatko 2021-02-11 10:53:15 UTC
Tested using RHEL-8.4.0-20210210.d.2 with anaconda-33.16.4.11-1.el8 according to comment #0.
The depracated message was clearly described, seting Verified: Tested.

Comment 9 Jiri Konecny 2021-02-16 11:09:38 UTC
Added doc text. Set that as Enhacement because it's not a bug and I think they should be shown in the release notes.

I hope the doc type is correct.

Comment 13 Jiri Konecny 2021-02-18 11:37:42 UTC
Looks great to me. Thanks!

Comment 16 errata-xmlrpc 2021-05-18 15:47:13 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-2021:1844