From 27e5690c804f6a1ce56cac8ae46c4101cbc4380e Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Wed, 22 Apr 2020 13:02:51 -0700 Subject: [PATCH 1/3] moviong containerd and kublet pods to presistant mount --- .../minikube-iso/package/automount/minikube-automount | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy/iso/minikube-iso/package/automount/minikube-automount b/deploy/iso/minikube-iso/package/automount/minikube-automount index 77e5fda1fe72..b5eba633b9ac 100755 --- a/deploy/iso/minikube-iso/package/automount/minikube-automount +++ b/deploy/iso/minikube-iso/package/automount/minikube-automount @@ -101,6 +101,10 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then mkdir -p /var/lib/docker mount --bind /mnt/$PARTNAME/var/lib/docker /var/lib/docker + mkdir -p /mnt/$PARTNAME/var/lib/containerd + mkdir -p /var/lib/containerd + mount --bind /mnt/$PARTNAME/var/lib/containerd /var/lib/containerd + mkdir -p /mnt/$PARTNAME/var/lib/containers mkdir -p /var/lib/containers mount --bind /mnt/$PARTNAME/var/lib/containers /var/lib/containers @@ -117,10 +121,15 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then mkdir /var/lib/kubelet mount --bind /mnt/$PARTNAME/var/lib/kubelet /var/lib/kubelet + mkdir -p /mnt/$PARTNAME/var/lib/kubelet/pods + mkdir /var/lib/kubelet/pods + mount --bind /mnt/$PARTNAME/var/lib/kubelet /var/lib/kubelet/pods + mkdir -p /mnt/$PARTNAME/var/lib/cni mkdir /var/lib/cni mount --bind /mnt/$PARTNAME/var/lib/cni /var/lib/cni + mkdir -p /mnt/$PARTNAME/data mkdir /data mount --bind /mnt/$PARTNAME/data /data From 679e4ca1cb75d7b170750e4db57fffb23249f4df Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Wed, 22 Apr 2020 13:04:08 -0700 Subject: [PATCH 2/3] remove extra line --- deploy/iso/minikube-iso/package/automount/minikube-automount | 1 - 1 file changed, 1 deletion(-) diff --git a/deploy/iso/minikube-iso/package/automount/minikube-automount b/deploy/iso/minikube-iso/package/automount/minikube-automount index b5eba633b9ac..9dd85c08bdf4 100755 --- a/deploy/iso/minikube-iso/package/automount/minikube-automount +++ b/deploy/iso/minikube-iso/package/automount/minikube-automount @@ -129,7 +129,6 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then mkdir /var/lib/cni mount --bind /mnt/$PARTNAME/var/lib/cni /var/lib/cni - mkdir -p /mnt/$PARTNAME/data mkdir /data mount --bind /mnt/$PARTNAME/data /data From 214bf4308c80f3b08b3137595fd37e994c944bb6 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Wed, 22 Apr 2020 14:41:14 -0700 Subject: [PATCH 3/3] address review comments --- deploy/iso/minikube-iso/package/automount/minikube-automount | 4 ---- 1 file changed, 4 deletions(-) diff --git a/deploy/iso/minikube-iso/package/automount/minikube-automount b/deploy/iso/minikube-iso/package/automount/minikube-automount index 9dd85c08bdf4..f1a8484bee54 100755 --- a/deploy/iso/minikube-iso/package/automount/minikube-automount +++ b/deploy/iso/minikube-iso/package/automount/minikube-automount @@ -121,10 +121,6 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then mkdir /var/lib/kubelet mount --bind /mnt/$PARTNAME/var/lib/kubelet /var/lib/kubelet - mkdir -p /mnt/$PARTNAME/var/lib/kubelet/pods - mkdir /var/lib/kubelet/pods - mount --bind /mnt/$PARTNAME/var/lib/kubelet /var/lib/kubelet/pods - mkdir -p /mnt/$PARTNAME/var/lib/cni mkdir /var/lib/cni mount --bind /mnt/$PARTNAME/var/lib/cni /var/lib/cni