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
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