From fce6aa6dec9f60c2b0b30b53c8cd3589c06c7fce Mon Sep 17 00:00:00 2001 From: fewtarius Date: Wed, 14 Feb 2024 16:27:35 +0000 Subject: [PATCH] Fix initramfs oops. --- packages/virtual/initramfs/package.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/virtual/initramfs/package.mk b/packages/virtual/initramfs/package.mk index c26ed9953..f4a500f03 100644 --- a/packages/virtual/initramfs/package.mk +++ b/packages/virtual/initramfs/package.mk @@ -20,7 +20,12 @@ if [ "${INITRAMFS_PARTED_SUPPORT}" = yes ]; then fi post_install() { - ( cd ${BUILD}/initramfs + ( + if [ ! -d "${BUILD}/initramfs" ] + then + mkdir ${BUILD}/initramfs + fi + cd ${BUILD}/initramfs if [ "${TARGET_ARCH}" = "x86_64" ]; then ln -sfn /usr/lib ${BUILD}/initramfs/lib64 mkdir -p ${BUILD}/initramfs/usr