Skip to content

Commit 64f448d

Browse files
committed
linux-image.sh: symlink riscv64 dynamic loader
1 parent a17d2fb commit 64f448d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docker/linux-image.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,12 @@ mount -t 9p -o trans=virtio target /target -oversion=9p2000.u || true
388388
exec dropbear -F -E -B
389389
EOF
390390

391+
if [[ "${arch}" == "riscv64" ]]; then
392+
# Symlink dynamic loader to /lib/ld-linux-riscv64-lp64d.so.1
393+
mkdir -p "${root}/lib"
394+
ln -s /usr/lib/riscv64-linux-gnu/ld-linux-riscv64-lp64d.so.1 "${root}/lib/ld-linux-riscv64-lp64d.so.1"
395+
fi
396+
391397
chmod +x "${root}/init"
392398
cd "${root}"
393399
find . | cpio --create --format='newc' --quiet | gzip >../initrd.gz

0 commit comments

Comments
 (0)