From 1042810eca730ead42f47e9c9889e7bcdcc9564e Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Sun, 17 Nov 2024 23:14:57 +0100 Subject: [PATCH] Increase settings migration speed under u-OS --- src/migrate_openwrt_rootfs.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/migrate_openwrt_rootfs.sh b/src/migrate_openwrt_rootfs.sh index db5fa7f..750cc00 100644 --- a/src/migrate_openwrt_rootfs.sh +++ b/src/migrate_openwrt_rootfs.sh @@ -44,8 +44,7 @@ if [ -f /storage/old_version ]; then # This is a workaround! # Make a copy from the original OpenWrt image - cp /var/vm/squashfs-combined-${OPENWRT_VERSION}.img.gz /tmp/squashfs-combined-tmp.img.gz - gzip -d /tmp/squashfs-combined-tmp.img.gz + cp $SQUASHFS_COMBINED /tmp/squashfs-combined-tmp.img # Boot a temporary OpenWrt qemu-system-aarch64 -M virt -cpu host --enable-kvm -smp 2 -nographic -nodefaults -m 256 \