Browse Source

Load images

master
Mayank 5 years ago
parent
commit
041ca64569
No known key found for this signature in database GPG Key ID: D037D60476CE748C
  1. 4
      stage0/00-configure-apt/00-run.sh
  2. 4
      stage2/01-sys-tweaks/files/rc.local

4
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

4
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

Loading…
Cancel
Save