mirror of
https://github.com/lukechilds/dockerpi.git
synced 2026-07-17 16:34:53 +00:00
Use /sdcard as mount point
This commit is contained in:
parent
d0e67f0813
commit
3f9ae948d6
2 changed files with 3 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue