Skip to content

Commit bb07acd

Browse files
committed
ensure that /dev has settled before operating
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. Signed-off-by: David Genest <[email protected]>
1 parent 55afd08 commit bb07acd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deploy/iso/minikube-iso/package/automount/minikube-automount.service

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[Unit]
22
Description=minikube automount
3+
Requires=systemd-udev-settle.service
34
Before=docker.service rkt-api.service rkt-metadata.service
5+
After=systemd-udev-settle.service
46

57
[Service]
68
ExecStart=/usr/sbin/minikube-automount

0 commit comments

Comments
 (0)