Bug 1697798 - "fixfiles -B onboot" shows usage
Summary: "fixfiles -B onboot" shows usage
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: policycoreutils
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.1
Assignee: Petr Lautrbach
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-09 06:34 UTC by Renaud Métrich
Modified: 2020-11-14 09:45 UTC (History)
6 users (show)

Fixed In Version: policycoreutils-2.9-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:06:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3536 0 None None None 2019-11-05 22:07:02 UTC

Description Renaud Métrich 2019-04-09 06:34:36 UTC
Description of problem:

On RHEL7 executing "fixfiles -B onboot" was working as expected. On RHEL8, the man page and usage didn't change regarding this, but the command is now failing, showing the usage:

-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
# fixfiles -B onboot

Usage: /usr/sbin/fixfiles [-v] [-F] [-f] relabel
[...]
#
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This is due to the $RESTORE_MODE test in process() function not testing against BOOTTIME value, hence failing:

-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
process() {
[...]
case "$1" in
[...]
    onboot)
        if [ "$RESTORE_MODE" != DEFAULT ]; then
            usage
            exit 1
        fi
[...]
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------


Version-Release number of selected component (if applicable):

policycoreutils-2.8-16.1.el8.x86_64


How reproducible:

Always

Steps to Reproduce:
1. Execute "fixfiles -B onboot"

Actual results:

Usage shown


Expected results:

"System will relabel on next boot" message

Comment 9 errata-xmlrpc 2019-11-05 22:06:47 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, 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-2019:3536


Note You need to log in before you can comment on or make changes to this bug.