Store the toolbox on the disk instead of rootfs

There was a lack of "disk" space, when using memory.

This also makes the toolbox persistent over reboots.
pull/3951/head
Anders F Björklund 2019-03-25 07:35:18 +01:00
parent 95082b32bc
commit 71b3e3ec5d
2 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,10 @@ if [ -n "$BOOT2DOCKER_DATA" ]; then
mkdir /var/lib/minikube
mount --bind /mnt/$PARTNAME/var/lib/minikube /var/lib/minikube
mkdir -p /mnt/$PARTNAME/var/lib/toolbox
mkdir /var/lib/toolbox
mount --bind /mnt/$PARTNAME/var/lib/toolbox /var/lib/toolbox
mkdir -p /mnt/$PARTNAME/var/lib/minishift
mkdir /var/lib/minishift
mount --bind /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift

View File

@ -89,6 +89,7 @@ func testPersistence(t *testing.T) {
"/var/lib/cni",
"/var/lib/kubelet",
"/var/lib/minikube",
"/var/lib/toolbox",
"/var/lib/rkt",
"/var/lib/boot2docker",
} {