Skip to content

Commit

Permalink
fix build error /etc/mtab No such file or directory
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Morjan <[email protected]>
  • Loading branch information
pmorjan committed May 18, 2024
1 parent e377a08 commit 57e5468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion qemu/s390x/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN set -eu; \
rm -f go.tar.gz

RUN mkdir -p \
$QEMU_ROOT/etc \
$QEMU_ROOT/dev \
$QEMU_ROOT/proc \
$QEMU_ROOT/rootfs \
Expand Down Expand Up @@ -75,7 +76,6 @@ RUN cp -d --preserve=all --parents \
$QEMU_ROOT/ 2>&1 | grep -v 'omitting directory';:

RUN cp -a --parents \
/etc/mtab \
/usr/bin/qemu-system-s390x \
/usr/bin/rsync \
/usr/lib/ld64.so.1 \
Expand All @@ -92,6 +92,7 @@ RUN cp -d --preserve=all --parents \
$QEMU_ROOT/

RUN cd $QEMU_ROOT \
&& ln -s /proc/mounts etc/mtab \
&& ln -s usr/bin bin \
&& ln -s usr/lib64 lib64 \
&& ln -s usr/lib lib \
Expand Down
3 changes: 2 additions & 1 deletion qemu/x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN set -eu; \
rm -f go.tar.gz

RUN mkdir -p \
$QEMU_ROOT/etc \
$QEMU_ROOT/dev \
$QEMU_ROOT/proc \
$QEMU_ROOT/rootfs \
Expand Down Expand Up @@ -68,7 +69,6 @@ RUN cp -d --preserve=all --parents \
$QEMU_ROOT/ 2>&1 | grep -v 'omitting directory';:

RUN cp -a --parents \
/etc/mtab \
/usr/bin/qemu-system-x86_64 \
/usr/bin/rsync \
/usr/lib64/ld-linux-x86-64.so.2 \
Expand All @@ -87,6 +87,7 @@ RUN cp -d --preserve=all --parents \
$QEMU_ROOT/

RUN cd $QEMU_ROOT \
&& ln -s /proc/mounts etc/mtab \
&& ln -s usr/bin bin \
&& ln -s usr/lib64 lib64 \
&& ln -s usr/lib lib \
Expand Down

0 comments on commit 57e5468

Please sign in to comment.