Replace "halt" command by "poweroff". For same reason the halt command didn't shutdown qemu anymore.

This commit is contained in:
Albrecht Lohofener
2026-03-03 21:04:54 +01:00
parent 243c18fe54
commit 2f9edf4eb6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ RUN echo "Building for platform '$TARGETPLATFORM'" \
&& ssh root@localhost -p $SSH_PORT "${PACKAGE_REMOVE} openssh-sftp-server" \
\
# Sync changes into image and shutdown qemu \
&& ssh root@localhost -p $SSH_PORT 'sync; halt' \
&& ssh root@localhost -p $SSH_PORT 'sync; poweroff' \
&& while kill -0 $QEMU_PID 2>/dev/null; do echo "Waiting for qemu exit ..."; sleep 1; done \
\
&& gzip /var/vm/squashfs-combined-${OPENWRT_VERSION}.img \
+2 -2
View File
@@ -88,7 +88,7 @@ if [ -f /storage/old_version ]; then
ssh root@localhost -p 1022 "chroot /mnt /sbin/sysupgrade -r /tmp/openwrt_config.tar.gz"
# Stop VM
ssh root@localhost -p 1022 'sync; halt'
ssh root@localhost -p 1022 'sync; poweroff'
while kill -0 $QEMU_PID 2>/dev/null; do echo "Waiting for qemu exit ..."; sleep 1; done;
# Delete temporary OpenWrt image
@@ -100,4 +100,4 @@ if [ -f /storage/old_version ]; then
if [ -f storage/config-`basename $OLD_SQUASHFS_COMBINED.img`.tar.gz ]; then
rm /storage/config-`basename $OLD_SQUASHFS_COMBINED.img`.tar.gz
fi
fi
fi