core87: work arround u-boot folder detection bug.

some u-boot version seems only scan the first directory entries for
folders and not find the dtb's if the folder are created to late.
This commit is contained in:
Arne Fitzenreiter
2015-01-29 19:00:13 +01:00
parent 026413980f
commit 8d903f6db9

View File

@@ -89,11 +89,17 @@ case "$(uname -m)" in
# Remove all files that belong to GRUB-legacy
rm -rfv /boot/grub
;;
armv*)
# Backup uEnv.txt if exist
if [ -e /boot/uEnv.txt ]; then
cp -vf /boot/uEnv.txt /boot/uEnv.txt.org
fi
# work around the u-boot folder detection bug
mkdir -pv /boot/dtb-$KVER-ipfire-kirkwood
mkdir -pv /boot/dtb-$KVER-ipfire-multi
;;
esac
# Backup uEnv.txt if exist
if [ -e /boot/uEnv.txt ]; then
cp -vf /boot/uEnv.txt /boot/uEnv.txt.org
fi
#
#Stop services
@@ -119,6 +125,8 @@ if [ $BOOTSPACE -lt 1000 ]; then
# Special handling for old kirkwood images.
# (install only kirkwood kernel)
rm -rf /boot/*
# work around the u-boot folder detection bug
mkdir -pv /boot/dtb-$KVER-ipfire-kirkwood
tar xavf /opt/pakfire/tmp/files* --no-overwrite-dir -p \
--numeric-owner -C / --wildcards 'boot/*-kirkwood*'
;;