Skip to content

Instantly share code, notes, and snippets.

@bboozzoo
Created July 24, 2019 11:18
Show Gist options
  • Save bboozzoo/cf31eabf48b7c75c531ad2c2ecd5d851 to your computer and use it in GitHub Desktop.
Save bboozzoo/cf31eabf48b7c75c531ad2c2ecd5d851 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -x
set -e
if [ "$#" -lt 3 ]; then
echo "usage: $0 <source-img> <dest-img> <uci-config>"
exit 1
fi
cp -fv "$1" "$2"
qemu-img resize "$2" 20G
SNAPSHOT=n GUI=virtio ./run-qemu "$2" -drive file="$3",if=virtio,index=1,snapshot=on -smp 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment