Skip to content

fstab-generator: do not skip Before= ordering for noauto mountpoints - #5547

Merged
poettering merged 1 commit into
systemd:masterfrom
intelfx:fstab-generator-noauto-ordering
Apr 24, 2017
Merged

poettering merged 1 commit into
systemd:masterfrom
intelfx:fstab-generator-noauto-ordering

Conversation

@intelfx

@intelfx intelfx commented Mar 6, 2017 •

Copy link
Copy Markdown
Contributor

This PR reinstates Before= ordering dependencies for mount points marked as "noauto".

Rationale

  • ordering on shutdown is a good thing independently of auto/noauto;
  • easier to create "soft-auto" or "ordered-nofail" mountpoints (noauto + manual Wants=).

Fixes #4047.

@intelfx
intelfx force-pushed the fstab-generator-noauto-ordering branch from 8579e19 to 0b8a94e Compare March 6, 2017 18:42
@fsateler

fsateler commented Mar 6, 2017

Copy link
Copy Markdown
Contributor

This would introduce a 90 seconds delay on systems where a noauto mount is not available at boot time. I don't think that is a desirable outcome.

@intelfx

intelfx commented Mar 6, 2017 •

Copy link
Copy Markdown
Contributor Author

@fsateler Why would a noauto mount be activated at boot time at all? Note: this is noauto, not nofail.

@fsateler

fsateler commented Mar 6, 2017

Copy link
Copy Markdown
Contributor

Oh, right. I misread. Sorry for the noise

@poettering

Copy link
Copy Markdown
Member

@fsateler Why would a noauto mount be activated at boot time at all? Note: this is noauto, not nofail.

Something else than just "auto" might pull in a mount unit however... For example a RequiresMountsFor= or a mount point further down that is marked "auto" might pull in a mount unit that not marked "auto". And in that case this is quite a change in behaviour I would say.

Can you elaborate on the usecase for this?

@intelfx

intelfx commented Mar 31, 2017

Copy link
Copy Markdown
Contributor Author

@poettering

For example a RequiresMountsFor= or a mount point further down that is marked "auto" might pull in a mount unit that not marked "auto". And in that case this is quite a change in behaviour I would say.

Which changes in behavior do you mean? If I correctly understand everything, an auto mountpoint that is behind a noauto one will wait for its parent in any case, so that noauto one gets transitively ordered Before=local-fs.target either way, i. e. in such situation this change does not create any new dependencies.

Can you elaborate on the usecase for this?

Consider a noauto+automount /home or any other widely used mountpoint. umount of such a mountpoint on shutdown will likely fail due to absence of ordering against running services, which can cause arbitrary problems in non-standard scenarios (consider remote mountpoints, mount helpers running off remote filesystems, ...).

@intelfx

intelfx commented Apr 15, 2017

Copy link
Copy Markdown
Contributor Author

@poettering So, does that sound convincing enough?

@poettering
poettering merged commit bd6bcce into systemd:master Apr 24, 2017
Werkov pushed a commit to Werkov/systemd that referenced this pull request Jun 22, 2017
@intelfx
intelfx deleted the fstab-generator-noauto-ordering branch September 7, 2017 01:05
Werkov pushed a commit to Werkov/systemd that referenced this pull request Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants