diff options
Diffstat (limited to 'meta/classes/boot-directdisk.bbclass')
-rw-r--r-- | meta/classes/boot-directdisk.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/boot-directdisk.bbclass b/meta/classes/boot-directdisk.bbclass index 995d3e7fc6..5107d7f8e4 100644 --- a/meta/classes/boot-directdisk.bbclass +++ b/meta/classes/boot-directdisk.bbclass | |||
@@ -76,8 +76,10 @@ boot_direct_populate() { | |||
76 | rm -f $dest/initrd | 76 | rm -f $dest/initrd |
77 | for fs in ${INITRD} | 77 | for fs in ${INITRD} |
78 | do | 78 | do |
79 | if [ -n "${fs}" ] && [ -s "${fs}" ]; then | 79 | if [ -s "${fs}" ]; then |
80 | cat ${fs} >> $dest/initrd | 80 | cat ${fs} >> $dest/initrd |
81 | else | ||
82 | bbfatal "${fs} is invalid. initrd image creation failed." | ||
81 | fi | 83 | fi |
82 | done | 84 | done |
83 | chmod 0644 $dest/initrd | 85 | chmod 0644 $dest/initrd |