can not start the image build by myself
i follow the following steps to build the images
mkdir aosp && cd aosp
repo init -u https://github.com/remote-android/platform_manifests.git -b redroid10-gsi --depth=1
repo sync -c --no-tags
. build/envsetup.sh
lunch redroid_x86_64-userdebug
m -j4
after compile successfully cd out/target/product/redroid_x86_64/ sudo mount system.img system -o ro sudo mount vendor.img vendor -o ro sudo tar --xattrs -c vendor -C system --exclude="vendor" . | docker import -c 'ENTRYPOINT ["/init", "qemu=1", "androidboot.hardware=redroid"]' - redroid docker run -itd --rm --memory-swappiness=0 --privileged -v /home/test/data:/data -p 5555:5555 redroid
but it report the error docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "/init": stat /init: no such file or directory: unknown. the docker image is very small only 499MB
is there any error in my steps?
something wrong with your image, please make sure system.img mounted correctly.
i have checked system.img is mounted, and i can go to the mount directory and ls all the files
@xiechao4 what is the root cause?
Why do i get "Operation not permitted" error. xxx@redroid-builder:/src/out/target/product/redroid_x86_64$ sudo mount system.img system -o ro mount: system: mount failed: Operation not permitted.
should running on HOST OS (instead of docker container).