From d9da7b970e3c50b0c8c4d2c4339f44d16afe9001 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Wed, 3 Oct 2018 17:46:25 +0530 Subject: [PATCH] Issue #13 Add crio, podman, buildah and skopeo package --- fedora.template | 4 ++++ scripts/handle-user-data | 17 +++++++++++++++++ tests/test.sh | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/fedora.template b/fedora.template index 907798c..fdf8c8c 100644 --- a/fedora.template +++ b/fedora.template @@ -48,6 +48,10 @@ nfs-utils go-hvkvp python-setuptools dnsmasq +podman +buildah +skopeo +cri-o #Packages to be removed -aic94xx-firmware diff --git a/scripts/handle-user-data b/scripts/handle-user-data index 3cf207b..43f39b9 100755 --- a/scripts/handle-user-data +++ b/scripts/handle-user-data @@ -43,10 +43,27 @@ mount_partitions() { mount --bind /mnt/$PARTNAME/var/lib/docker /var/lib/docker restorecon -R /var/lib/docker + mkdir -p /mnt/$PARTNAME/var/lib/containers + mkdir -p /var/lib/containers + mount --bind /mnt/$PARTNAME/var/lib/containers /var/lib/containers + restorecon -R /var/lib/containers + mkdir -p /mnt/$PARTNAME/var/lib/boot2docker mkdir -p /var/lib/boot2docker mount --bind /mnt/$PARTNAME/var/lib/boot2docker /var/lib/boot2docker + mkdir -p /mnt/$PARTNAME/var/lib/boot2docker/etc/docker + cp -r /etc/docker/* /mnt/$PARTNAME/var/lib/boot2docker/etc/docker + rm -rf /etc/docker + mkdir -p /etc/docker + mount --bind /mnt/$PARTNAME/var/lib/boot2docker/etc/docker /etc/docker + + mkdir -p /mnt/$PARTNAME/etc/containers + cp -r /etc/containers/* /mnt/$PARTNAME/etc/containers + rm -rf /etc/containers + mkdir -p /etc/containers + mount --bind /mnt/$PARTNAME/etc/containers /etc/containers + mkdir -p /mnt/$PARTNAME/var/lib/minishift mkdir -p /var/lib/minishift mount --bind /mnt/$PARTNAME/var/lib/minishift /var/lib/minishift diff --git a/tests/test.sh b/tests/test.sh index 0b8c6e8..a233f14 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -110,7 +110,7 @@ function verify_nfs_installation() { function verify_bind_mount() { output=`$BINARY ssh -- 'findmnt | grep "\[/var/lib/" | wc -l'` - assert_equal $output "8" + assert_equal $output "11" print_success_message "Bind mount check" }