From 675d992b400a9889e28378ec9c86bf41cd38b7c9 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 16 Dec 2023 05:52:58 -0600 Subject: [PATCH] Move the modules archive under docs. If you build kernel modules, it archives them up separately and then appends them to the initramfs.cpio.gz so you don't have to rebuild the kernel to rebuild the filesystem. But this leaves a file lying around at the top level which is not used to launch qemu, and those go in "docs". --- mkroot/mkroot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkroot/mkroot.sh b/mkroot/mkroot.sh index e78d799b..352ba24a 100755 --- a/mkroot/mkroot.sh +++ b/mkroot/mkroot.sh @@ -298,7 +298,7 @@ else if [ -n "$MODULES" ]; then make ARCH=$KARCH INSTALL_MOD_PATH=modz modules_install && (cd modz && find lib/modules | cpio -o -H newc -R +0:+0 ) | gzip \ - > "$OUTPUT/modules.cpio.gz" || exit 1 + > "$OUTDOC/modules.cpio.gz" || exit 1 fi cp "$VMLINUX" "$OUTPUT"/linux-kernel && cd .. && rm -rf linux && popd ||exit 1 fi @@ -307,7 +307,7 @@ fi if [ -z "$BUILTIN" ]; then announce initramfs { (cd "$ROOT" && find . -printf '%P\n' | cpio -o -H newc -R +0:+0 ) || exit 1 - ! test -e "$OUTPUT/modules.cpio.gz" || zcat $_;} | gzip \ + ! test -e "$OUTDOC/modules.cpio.gz" || zcat $_;} | gzip \ > "$OUTPUT"/initramfs.cpio.gz || exit 1 fi -- 2.39.2