diff --git a/stage2/01-sys-tweaks/files/rc.local b/stage2/01-sys-tweaks/files/rc.local index a823a54..38153ae 100755 --- a/stage2/01-sys-tweaks/files/rc.local +++ b/stage2/01-sys-tweaks/files/rc.local @@ -44,10 +44,13 @@ fi # Check if docker images have been loaded if [ ! -f /home/umbrel/statuses/images-loaded ]; then - if [ -f /home/umbrel/umbrel-docker-images.tar ]; then - echo "Loading docker images" - docker load -i /home/umbrel/umbrel-docker-images.tar || exit 1 - rm -f /home/umbrel/umbrel-docker-images.tar + if [ -f /home/umbrel/umbrel-docker-images.tar.gz ]; then + echo "Loading pre-bundled Docker images" + start=`date +%s` + docker load -i /home/umbrel/umbrel-docker-images.tar.gz || exit 1 + end=`date +%s` + echo "It took $((($end - $start)/60)) minutes ($((end - start)) seconds) to load all the images" + rm -f /home/umbrel/umbrel-docker-images.tar.gz touch /home/umbrel/statuses/images-loaded chown -R umbrel.umbrel /home/umbrel/statuses/images-loaded else diff --git a/stage2/05-docker-compose/01-run.sh b/stage2/05-docker-compose/01-run.sh index 7cb8587..dcae09e 100755 --- a/stage2/05-docker-compose/01-run.sh +++ b/stage2/05-docker-compose/01-run.sh @@ -41,6 +41,6 @@ while IFS= read -r image; do docker pull --platform=linux/arm/v7 $image done <<< "$IMAGES" -docker save $IMAGES -o umbrel-docker-images.tar -du -h umbrel-docker-images.tar -cp umbrel-docker-images.tar ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/umbrel-docker-images.tar \ No newline at end of file +docker save $IMAGES | gzip > umbrel-docker-images.tar.gz +du -h umbrel-docker-images.tar.gz +cp umbrel-docker-images.tar.gz ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/umbrel-docker-images.tar.gz \ No newline at end of file