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