From 4778558990a01197de70f1431c747d7463f90f3e Mon Sep 17 00:00:00 2001 From: netflexs Date: Thu, 14 Nov 2024 14:45:12 +0700 Subject: [PATCH] Update build-with-llvm.yml --- .github/workflows/build-with-llvm.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-with-llvm.yml b/.github/workflows/build-with-llvm.yml index c0646ab6481d8f..c46d493e30e566 100644 --- a/.github/workflows/build-with-llvm.yml +++ b/.github/workflows/build-with-llvm.yml @@ -42,7 +42,7 @@ jobs: run: | tar -czvf kernel-build.tar.gz arch/x86/boot/bzImage - - name: Build Root Filesystem + - name: Build Root Filesystem run: | # Prepare root filesystem structure mkdir -p rootfs/{bin,sbin,etc,proc,sys,usr/{bin,sbin}} @@ -63,13 +63,14 @@ jobs: # Create symlinks for busybox commands for cmd in $(rootfs/bin/busybox --list); do - ln -s /bin/busybox rootfs/bin/$cmd + [ ! -e rootfs/bin/$cmd ] && ln -s /bin/busybox rootfs/bin/$cmd done # Create initramfs image cd rootfs find . | cpio -H newc -ov --owner root:root | gzip > ../initramfs.img + - name: Archive the RootFS Artifact run: | tar -czvf rootfs-build.tar.gz initramfs.img