Skip to content

Commit

Permalink
units: Workaround for user-configvirtfs.service
Browse files Browse the repository at this point in the history
As Jeremi noticed with the current Flatcar Stable 3510.2.7 and a custom
Docker brought in as systemd-sysext image, the qemu VM didn't pick up
the SSH keys anymore. This couldn't be reproduced with Alpha, though.
The culprit is not completely known but it seems to be a race condition
that makes the Wants= dependency of media-configvirtfs.mount not take
action.
To work around the problem, use Upholds= which eventually starts
user-configvirtfs.service.
  • Loading branch information
pothos committed Sep 21, 2023
1 parent 2e2ef1b commit 22450d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion units/media-configvirtfs.mount
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Wants=user-configvirtfs.service
Upholds=user-configvirtfs.service
Before=user-configvirtfs.service
# Only mount config drive block devices automatically in virtual machines
# or any host that has it explicitly enabled and not explicitly disabled.
Expand Down

0 comments on commit 22450d0

Please sign in to comment.