Use /sdcard as mount point

This commit is contained in:
Luke Childs 2019-12-14 08:57:03 +07:00
parent d0e67f0813
commit 3f9ae948d6
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ RUN cd /tmp && \
cp -r qemu-rpi-kernel-*/* /root/qemu-rpi-kernel/ && \
rm -rf /tmp/* /root/qemu-rpi-kernel/README.md /root/qemu-rpi-kernel/tools
VOLUME /data
VOLUME /sdcard
ADD ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["./entrypoint.sh"]

View file

@ -1,6 +1,6 @@
#!/bin/sh
image_path="/data/filesystem.img"
image_path="/sdcard/filesystem.img"
zip_path="/filesystem.zip"
if [ ! -e $image_path ] && [ -e $zip_path ]; then
@ -14,7 +14,7 @@ exec qemu-system-arm \
-M versatilepb \
-cpu arm1176 \
-m 256M \
-hda /data/filesystem.img \
-hda /sdcard/filesystem.img \
-net nic \
-net user,hostfwd=tcp::5022-:22 \
-dtb /root/qemu-rpi-kernel/versatile-pb.dtb \