diff options
author | Andreas Oberritter <obi@opendreambox.org> | 2016-12-01 00:36:47 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-08 10:26:12 +0000 |
commit | 7dbdb4ea91aa027866da2bd46c65fe65a25c848f (patch) | |
tree | c25fad8484dcdec46c0932592dc6eef2312e948d /meta/classes | |
parent | 103faae78cdff5280c7b7cdb7ca01e0868d02ec9 (diff) | |
download | openembedded-core-7dbdb4ea91aa027866da2bd46c65fe65a25c848f.tar.gz openembedded-core-7dbdb4ea91aa027866da2bd46c65fe65a25c848f.tar.bz2 openembedded-core-7dbdb4ea91aa027866da2bd46c65fe65a25c848f.zip |
kernel.bbclass: allow uncompressed initramfs archives
The code failed to copy the initramfs in case it was a plain
cpio archive.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 17e85a4530..71d543b38e 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -165,7 +165,7 @@ copy_initramfs() { mkdir -p ${B}/usr # Find and use the first initramfs image archive type we find rm -f ${B}/usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio - for img in cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do + for img in cpio cpio.gz cpio.lz4 cpio.lzo cpio.lzma cpio.xz; do if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then cp ${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img ${B}/usr/. case $img in |