Bug 1748840
| Summary: | script generated by systemd-fstab-generator which is mounting a plain file under /tmp can start tmp.mount | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Yongcheng Yang <yoyang> |
| Component: | systemd | Assignee: | David Tardon <dtardon> |
| Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.0 | CC: | dtardon, systemd-maint-list, xzhou |
| Target Milestone: | rc | Keywords: | Reopened, Reproducer |
| Target Release: | 8.2 | Flags: | msekleta:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 02:02:06 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: | 1708794 | ||
|
Description
Yongcheng Yang
2019-09-04 09:30:37 UTC
*** Bug 1653207 has been marked as a duplicate of this bug. *** Have just checked this problem can only be triggered when mounting plain file resides in the directory /tmp/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ # systemctl start /test # df -h /tmp/ Filesystem Size Used Avail Use% Mounted on /dev/mapper/rhel_ibm--x3250m4--07-root 50G 3.2G 47G 7% / # systemctl cat /test # /run/systemd/generator/test.mount # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/test What=/root/test_img <<<<<<<<<< Type=xfs # losetup NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC /dev/loop0 0 0 1 0 /root/test_img 0 512 The result might be a bit surprising, but there is no bug here. The generator adds /root/test_img to test.mount's RequiresMountsFor= (run "systemctl show -p RequiresMountsFor test.mount" to check). Because of this and because there is an active mount unit for /tmp, tmp.mount is added to test.mount's After= when test.mount is loaded ("systemctl show -p After test.mount"). Mask tmp.mount if you don't want this.
I didn't realize we already handle this as a special case in RHEL 7. Reopening. fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/104 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 (Low: systemd security, 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/RHSA-2020:4553 |