From 8d903f6db9a2c942d523a9a376d29f8800800639 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Thu, 29 Jan 2015 19:00:13 +0100 Subject: [PATCH] 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. --- config/rootfiles/core/86/update.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/core/86/update.sh b/config/rootfiles/core/86/update.sh index 3d08ed4fa4..8a820e26bb 100644 --- a/config/rootfiles/core/86/update.sh +++ b/config/rootfiles/core/86/update.sh @@ -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*' ;; -- 2.39.2