home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 14 May 2025 07:11:15 +0000 (09:11 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 14 May 2025 07:11:15 +0000 (09:11 +0200)
trixie/aptmark/reform_qemu
trixie/copy/reform_qemu/home/plom/run.sh

index f28a0bbb7b13b91eaaf27545c88ad3a8115f6908..998764d35d9750b33f1f6cb5e3e6f8401d31ff40 100644 (file)
@@ -2,6 +2,8 @@
 nftables
 # for getting images
 wget 
+# for running emulate.sh
+parted 
 # qemu stuff
 qemu-system-aarch64
 ipxe-qemu
index 5041ca8e7786a4fa8a5ceef35664fe1b9d83cbd7..7fef7709d9111fc48141fcd8b8ccd7c75c92a08a 100755 (executable)
@@ -5,16 +5,17 @@ URL_REPO="https://source.mnt.re/reform/${NAME_REPO}"
 NAME_IMG='pocket-reform-system-rk3588.img'
 NAME_IMG_GZ="${NAME_IMG}.gz"
 URL_IMG="${URL_REPO}/-/jobs/9939/artifacts/raw/${NAME_IMG_GZ}"
-PATH_EMULATE_SH="${NAME_REPO}/emulate.sh"
+NAME_SCRIPT='emulate.sh'
 
 cd
 if [ ! -e "${NAME_REPO}" ]; then
     git clone "${URL_REPO}"
     sed -i 's/-vnc :94,share=force-shared/-vnc :94,share=ignore/' "${PATH_EMULATE_SH}"
 fi
+cd "${NAME_REPO}"
 if [ ! -e "${NAME_IMG}" ]; then
     wget "${URL_IMG}"
     gunzip "${NAME_IMG_GZ}"
 fi
-"${PATH_EMULATE_SH}" "${NAME_IMG}"
+"${NAME_SCRIPT}" "${NAME_IMG}"