Bug 1323291 - tmpfiles.d/home.conf tries to mount /home over nfs - thus hanging the machine
Summary: tmpfiles.d/home.conf tries to mount /home over nfs - thus hanging the machine
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-01 18:16 UTC by Kim Bisgaard
Modified: 2017-12-12 10:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:53:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kim Bisgaard 2016-04-01 18:16:22 UTC
Description of problem:
systemd-tmpfiles executes home.conf resulting in an attempt to automount /home before network is started. This does not work, and systemd fails to boot

Version-Release number of selected component (if applicable):
# rpm -q systemd
systemd-229-7.fc24.x86_64
# rpm -q --whatprovides  /usr/lib/tmpfiles.d/home.conf
systemd-229-7.fc24.x86_64


How reproducible:
Always




Additional info:
/etc/fstab:
xxx:/home           /home                   nfs     defaults,comment=systemd.automount      0 0

Comment 1 Kim Bisgaard 2016-04-01 18:17:46 UTC
Moving /usr/lib/tmpfiles.d/home.conf away, results in normal boot ;-)

Comment 2 Zbigniew Jędrzejewski-Szmek 2016-04-02 13:34:51 UTC
Maybe tmpfiles should ignore paths which are configured mountpoints. This could be implemented as asking systemd for the unit for the mount path, and if this gives back a mount or automount unit, ignore the config in tmpfiles.

(In reply to Kim Bisgaard from comment #1)
> Moving /usr/lib/tmpfiles.d/home.conf away, results in normal boot ;-)

You can instead "touch /etc/tmpfiles.d/home.conf". This has the advantage that it'll survive the next update of systemd.rpm.

Comment 3 David Jansen 2016-11-24 15:53:06 UTC
Confirmed that this is still the case in Fedora 25.

A fix from Debain https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805553 pointed me in the right direction: if the entry in home.conf for /home has "v" in stead of "Q", all works fine. Or better, copy home./conf from /usr/lib/tmpfiles.d to /etc/tmpfiles.d so it is safe from updates as well:
  sed 's/^Q/v/' < /usr/lib/tmpfiles.d/home.conf > /etc/tmpfiles.d/home.conf

BTW: Fedora 23 had a "v" in this place. Q seems to have something to do with quota groups and as fas as I can understand from the tmpfiles.d man page, this is for btrfs, which I don't use, so for me, changing the Q to v in the

Comment 4 Fedora End Of Life 2017-07-25 20:27:58 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2017-08-08 14:09:15 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 6 David Jansen 2017-08-09 11:18:30 UTC
Situation is exactly the same in Fedora 25 and 26 beta (haven't tried Fedora 26 final yet), so please reopen and apply fix

Comment 7 Kim Bisgaard 2017-08-12 08:57:11 UTC
re-opened and changed to f25 as David requested

Comment 8 Fedora End Of Life 2017-11-16 19:14:54 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 David Jansen 2017-11-23 10:42:13 UTC
Fedora 27 seems fine without modifying the setup. Thanks for fixing (whatever the fix was).

Comment 10 Fedora End Of Life 2017-12-12 10:53:06 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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