fix chainloading to linux properly

This commit is contained in:
alex committed 2025-10-12 18:06:57 -07:00
1 parent f782341a0d
commit b2b916c2b7
3 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ FROM alpine:3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c4
RUN apk --no-cache add busybox-static
RUN mkdir -p /tmp/initramfs/bin && cp /bin/busybox.static /tmp/initramfs/bin/busybox && \
chroot /tmp/initramfs /bin/busybox --install -s /bin && \
chroot /tmp/initramfs ln -s /bin/sh /init && \
chroot /tmp/initramfs ln -s /bin/init /init && \
cd /tmp/initramfs && \
find . | cpio -R 0:0 --ignore-devno --renumber-inodes -o -H newc --quiet > /initramfs && \
rm -rf /tmp/initramfs