Skip to content

Commit

Permalink
moviong containerd and kublet pods to presistant mount
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Apr 22, 2020
1 parent 4803589 commit 27e5690
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy/iso/minikube-iso/package/automount/minikube-automount
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 27e5690

Please sign in to comment.