Skip to content

Failed create release image in Ubuntu 22.04 #24

@zhaohany

Description

@zhaohany

Brief description
Below issue from command line while running make release command:

[ 9/11] RUN cp -a --parents /etc/mtab /usr/bin/qemu-system-x86_64 /usr/bin/rsync /usr/lib64/ld-linux-x86-64.so.2 /usr/lib/ipxe/qemu /usr/lib/modules /usr/lib/x86_64-linux-gnu/ceph /usr/lib/x86_64-linux-gnu/qemu /usr/sbin/e2fsck /usr/sbin/fsck.ext2 /usr/sbin/fsck.ext4 /usr/sbin/mke2fs /usr/sbin/mkfs.ext2 /usr/sbin/mkfs.ext4 /usr/share/qemu /usr/share/seabios /var/lib/runq/qemu/:
0.440 cp: cannot stat '/etc/mtab': No such file or directory


When I check, the file exit in file system
ls -l /etc/mtab
lrwxrwxrwx 1 root root 19 May 17 20:36 /etc/mtab -> ../proc/self/mounts

Steps to reproduce the issue
After clone the repo, run: make release

Expected behaviour
runq release image created

Actual behaviour
ERROR: failed to solve: process "/bin/sh -c cp -a --parents /etc/mtab /usr/bin/qemu-system-x86_64 /usr/bin/rsync /usr/lib64/ld-linux-x86-64.so.2 /usr/lib/ipxe/qemu /usr/lib/modules /usr/lib/x86_64-linux-gnu/ceph /usr/lib/x86_64-linux-gnu/qemu /usr/sbin/e2fsck /usr/sbin/fsck.ext2 /usr/sbin/fsck.ext4 /usr/sbin/mke2fs /usr/sbin/mkfs.ext2 /usr/sbin/mkfs.ext4 /usr/share/qemu /usr/share/seabios $QEMU_ROOT/" did not complete successfully: exit code: 1
make[1]: *** [Makefile:6: image] Error 1
make[1]: Leaving directory '/home/yzh/runq/qemu'
make: *** [Makefile:27: image] Error 2

Content of section runtimes of /etc/docker/daemon.json

Content of /var/lib/runq/qemu/proxy --version

Content of docker --version
Client: Docker Engine - Community
Version: 24.0.5

Additional information
Operating System: Ubuntu 22.04.2 LTS
OSType: linux
Architecture: x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions