From bb07acdc908f6650c6e0e327be0e4021eff16fd0 Mon Sep 17 00:00:00 2001 From: David Genest Date: Tue, 25 Sep 2018 21:08:54 -0400 Subject: [PATCH] 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 --- .../minikube-iso/package/automount/minikube-automount.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/iso/minikube-iso/package/automount/minikube-automount.service b/deploy/iso/minikube-iso/package/automount/minikube-automount.service index 4f5a6ce6fa29..f5b7a6a52ff4 100644 --- a/deploy/iso/minikube-iso/package/automount/minikube-automount.service +++ b/deploy/iso/minikube-iso/package/automount/minikube-automount.service @@ -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