diff options
Diffstat (limited to 'meta/classes/boot-directdisk.bbclass')
| -rw-r--r-- | meta/classes/boot-directdisk.bbclass | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index 0da9932f4f..995d3e7fc6 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass | |||
| @@ -71,10 +71,17 @@ boot_direct_populate() { | |||
| 71 | # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use. | 71 | # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use. |
| 72 | install -m 0644 ${STAGING_KERNEL_DIR}/bzImage $dest/vmlinuz | 72 | install -m 0644 ${STAGING_KERNEL_DIR}/bzImage $dest/vmlinuz |
| 73 | 73 | ||
| 74 | if [ -n "${INITRD}" ] && [ -s "${INITRD}" ]; then | 74 | # initrd is made of concatenation of multiple filesystem images |
| 75 | install -m 0644 ${INITRD} $dest/initrd | 75 | if [ -n "${INITRD}" ]; then |
| 76 | rm -f $dest/initrd | ||
| 77 | for fs in ${INITRD} | ||
| 78 | do | ||
| 79 | if [ -n "${fs}" ] && [ -s "${fs}" ]; then | ||
| 80 | cat ${fs} >> $dest/initrd | ||
| 81 | fi | ||
| 82 | done | ||
| 83 | chmod 0644 $dest/initrd | ||
| 76 | fi | 84 | fi |
| 77 | |||
| 78 | } | 85 | } |
| 79 | 86 | ||
| 80 | build_boot_dd() { | 87 | build_boot_dd() { |
