mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
code cleanup for INITRD variable handing
* Remove an unnecessary check * Instead of ignoring, report the errors (From OE-Core rev: 7afc6df6f0d0bbe0c5cb8ec021d430d6d9714941) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
73c481d2cb
commit
bfa36a2188
@@ -76,8 +76,10 @@ boot_direct_populate() {
|
|||||||
rm -f $dest/initrd
|
rm -f $dest/initrd
|
||||||
for fs in ${INITRD}
|
for fs in ${INITRD}
|
||||||
do
|
do
|
||||||
if [ -n "${fs}" ] && [ -s "${fs}" ]; then
|
if [ -s "${fs}" ]; then
|
||||||
cat ${fs} >> $dest/initrd
|
cat ${fs} >> $dest/initrd
|
||||||
|
else
|
||||||
|
bbfatal "${fs} is invalid. initrd image creation failed."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
chmod 0644 $dest/initrd
|
chmod 0644 $dest/initrd
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ populate() {
|
|||||||
do
|
do
|
||||||
if [ -s "${fs}" ]; then
|
if [ -s "${fs}" ]; then
|
||||||
cat ${fs} >> ${DEST}/initrd
|
cat ${fs} >> ${DEST}/initrd
|
||||||
|
else
|
||||||
|
bbfatal "${fs} is invalid. initrd image creation failed."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
chmod 0644 ${DEST}/initrd
|
chmod 0644 ${DEST}/initrd
|
||||||
|
|||||||
Reference in New Issue
Block a user