Skip to content

Commit

Permalink
ensure that /dev has settled before operating
Browse files Browse the repository at this point in the history
Minikube automount relies on a VM disk to be mounted (usually /dev/sda)
to provide .ssh credentials.

This commit adds a dependency on systemd-udev-settle to ensure that all devices
(including disks) are up and available before executing the mount
script.

We use systemd-udev-settle
https://github.com/systemd/systemd/blob/master/units/systemd-udev-settle.service.in

To ensure this. Note that in the above link, we can read a comment
stating that systemd-udev-settle is used to ensure a populated /dev
during bootup, which is exaclty what we want.
  • Loading branch information
david authored and davidovich committed Oct 1, 2018
1 parent 55afd08 commit 509153f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=minikube automount
Requires=systemd-udev-settle.service
Before=docker.service rkt-api.service rkt-metadata.service
After=systemd-udev-settle.service

[Service]
ExecStart=/usr/sbin/minikube-automount
Expand Down

0 comments on commit 509153f

Please sign in to comment.