Closed bgilbert closed 1 year ago
@jlebon @dustymabe Any concerns?
Using the _netdev
option is definitely cleaner. At the time this functionality was added, I was looking at the systemd-fstab-generator
as reference and tried to match that since the use case was the rootfs and we rely on that generator there. But of course for bona fide mount units it makes sense to leverage the built-in semantics.
Were you able to test this on e.g. a /var/somedir
Tang-pinned mount? I think we have a CI gap around this right now.
Yup, it works with Tang-pinned secondary filesystems. :+1:
@jlebon @dustymabe Any concerns?
I trust you :)
In mount units for local filesystems, we've been enabling default dependencies but redundantly specifying
Before=local-fs.target
. Remove it.In mount units for filesystems on Tang-unlocked LUKS devices, we've been disabling default dependencies and then manually specifying
Before=remote-fs.target
. This omits sequencing withumount.target
for umount at shutdown; ordering dependencies onremote-fs-pre.target
,network.target
, andnetwork-online.target
; andWants=remote-fs.target
. There was some discussion of the proper directives when LUKS mount unit support was added in https://github.com/coreos/butane/pull/112, but nothing to indicate that default dependencies won't work. SetOptions=_netdev
and use default dependencies.