Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1887681

Summary: automount force unlink option (-F) does not work as expected on autofs-5.0.7-109.el7
Product: Red Hat Enterprise Linux 8 Reporter: Ian Kent <ikent>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: Kun Wang <kunwan>
Severity: high Docs Contact:
Priority: unspecified    
Version: ---CC: dwysocha, fhirtz, ikent, kunwan, rbergant, xzhou
Target Milestone: rcKeywords: Regression
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: autofs-5.1.4-47 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1885511 Environment:
Last Closed: 2021-05-18 14:55:46 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: 1885511    
Bug Blocks:    
Attachments:
Description Flags
Patch - fix direct mount unlink_mount_tree() path
none
Patch - fix unlink mounts umount order
none
Patch - fix incorrect logical compare in unlink_mount_tree()
none
Patch - use bit flag for force unlink mounts
none
Patch - improve force unlink mounts option description
none
Patch - remove logpri fifo on autofs mount fail
none
Patch - add force unlink mounts and exit option
none
Patch - cleanup stale logpri fifo pipes on unlink and exit none

Comment 2 Ian Kent 2020-11-04 08:25:52 UTC
Created attachment 1726481 [details]
Patch - fix direct mount unlink_mount_tree() path

Comment 3 Ian Kent 2020-11-04 08:27:07 UTC
Created attachment 1726482 [details]
Patch - fix unlink mounts umount order

Comment 4 Ian Kent 2020-11-04 08:28:08 UTC
Created attachment 1726483 [details]
Patch - fix incorrect logical compare in unlink_mount_tree()

Comment 5 Ian Kent 2020-11-04 08:29:42 UTC
Created attachment 1726484 [details]
Patch - use bit flag for force unlink mounts

Comment 6 Ian Kent 2020-11-04 08:31:05 UTC
Created attachment 1726486 [details]
Patch - improve force unlink mounts option description

Comment 7 Ian Kent 2020-11-04 08:32:11 UTC
Created attachment 1726487 [details]
Patch - remove logpri fifo on autofs mount fail

Comment 8 Ian Kent 2020-11-04 08:33:16 UTC
Created attachment 1726488 [details]
Patch - add force unlink mounts and exit option

Comment 9 Ian Kent 2020-11-04 08:34:19 UTC
Created attachment 1726489 [details]
Patch - cleanup stale logpri fifo pipes on unlink and exit

Comment 15 errata-xmlrpc 2021-05-18 14:55:46 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 (autofs 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:1621