Skip to content

Commit

Permalink
Move the modules archive under docs.
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
landley committed Dec 16, 2023
1 parent adef982 commit 675d992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkroot/mkroot.sh
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 675d992

Please sign in to comment.