* util/grub-install.in: Ignore empty devicetree directory.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-08 23:11:47 +02:00
parent 5efb817d64
commit df760f778a
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: Ignore empty devicetree directory.
2012-05-08 Bean <bean123ch@gmail.com>
* grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.

View file

@ -311,7 +311,12 @@ if [ x$source_dir = x ]; then
if [ -d /sys/firmware/efi ]; then
target="i386-efi"
elif [ -e /proc/device-tree ]; then
target=i386-pc
for x in /proc/device-tree/*; do
if [ -e "$x" ]; then
target="i386-ieee1275"
fi
done
else
target=i386-pc
fi