From 041ca6456922e0c6e39d88e9bb45cd9b9d3f0be6 Mon Sep 17 00:00:00 2001 From: Mayank Date: Thu, 2 Jul 2020 22:04:25 +0530 Subject: [PATCH] Load images --- stage0/00-configure-apt/00-run.sh | 4 ++-- stage2/01-sys-tweaks/files/rc.local | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh index b4901a7..46661f4 100755 --- a/stage0/00-configure-apt/00-run.sh +++ b/stage0/00-configure-apt/00-run.sh @@ -27,9 +27,9 @@ chmod +x download-frozen-image-v2.sh ./download-frozen-image-v2.sh docker-images getumbrel/middleware:latest ls docker-images/ mkdir -p ${ROOTFS_DIR}/tmp/docker-images -cp -avr docker-images/ ${ROOTFS_DIR}/tmp/docker-images +cp -avr docker-images/ ${ROOTFS_DIR}/tmp on_chroot << EOF -ls /tmp +echo "Verifying images on device" ls /tmp/docker-images EOF \ No newline at end of file diff --git a/stage2/01-sys-tweaks/files/rc.local b/stage2/01-sys-tweaks/files/rc.local index 4991680..261e184 100755 --- a/stage2/01-sys-tweaks/files/rc.local +++ b/stage2/01-sys-tweaks/files/rc.local @@ -54,6 +54,10 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then # Making this as done so we don't go through updates again touch /home/umbrel/statuses/service-configured chown -R umbrel.umbrel /home/umbrel/statuses/service-configured + + #Load docker images + echo "Loading docker images" + tar -cC '/tmp/docker-images' . | docker load fi # Next stage, check if service-configured