From 25822cc800d3c579d39a7fd42f132d0f451656b2 Mon Sep 17 00:00:00 2001 From: Mayank Date: Thu, 2 Jul 2020 20:52:58 +0530 Subject: [PATCH] Change dir --- stage0/00-configure-apt/00-run.sh | 7 ++++--- stage2/05-docker-compose/01-run.sh | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh index e915d05..39df22c 100755 --- a/stage0/00-configure-apt/00-run.sh +++ b/stage0/00-configure-apt/00-run.sh @@ -26,9 +26,10 @@ wget -q "https://raw.githubusercontent.com/moby/moby/master/contrib/download-fro chmod +x download-frozen-image-v2.sh ./download-frozen-image-v2.sh docker-images getumbrel/middleware:latest ls docker-images/ -cp -avr docker-images/ ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/docker-images +mkdir -p ${ROOTFS_DIR}/etc/tmp/docker-images +cp -avr docker-images/ ${ROOTFS_DIR}/etc/tmp/docker-images on_chroot << EOF -ls /home/${FIRST_USER_NAME}/ -ls /home/${FIRST_USER_NAME}/docker-images +ls /tmp +ls /tmp/docker-images EOF \ No newline at end of file diff --git a/stage2/05-docker-compose/01-run.sh b/stage2/05-docker-compose/01-run.sh index bf23baa..76a3b62 100755 --- a/stage2/05-docker-compose/01-run.sh +++ b/stage2/05-docker-compose/01-run.sh @@ -29,4 +29,8 @@ echo "Copying the compose service to rootfs (etc/init.d)" cp files/compose-service ${ROOTFS_DIR}/etc/init.d/umbrelbox -echo "Docker stuff installed!" \ No newline at end of file +echo "Docker stuff installed!" + +on_chroot << EOF +tar -cC '/tmp/docker-images' . | docker load +EOF \ No newline at end of file