raspberryPi boot loader: don't remove xx-initrd files

The Raspberry Pi boot loader was deleting all xx-initrd text files
(which simply contain the path to the actual initrd files) just after
having created them. The code was actually trying to delete real,
obsolete initrd files, which are named <hash>-initrd-initrd (after path
cleaning), but the glob was catching the other files as well.
This commit is contained in:
Ricardo M. Correia 2017-01-19 14:10:03 +01:00 committed by Tuomas Tynkkynen
parent c19b17d14f
commit 123cbd40c2

View File

@ -115,7 +115,7 @@ copyForced $fwdir/start_db.elf /boot/start_db.elf
copyForced $fwdir/start_x.elf /boot/start_x.elf
# Remove obsolete files from /boot and /boot/old.
for fn in /boot/old/*linux* /boot/old/*initrd* /boot/bcm*.dtb; do
for fn in /boot/old/*linux* /boot/old/*initrd-initrd* /boot/bcm*.dtb; do
if ! test "${filesCopied[$fn]}" = 1; then
rm -vf -- "$fn"
fi