commit: d8549032b9081e86465ce3d1f219d5e1043858f1
Author: Guy Martin <gmsoft <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 5 10:40:00 2014 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 27 02:03:04 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d8549032
Rename System.map in a way that it won't be matched if multiple kernel are used.
The System.map-version file gets renamed to System.map-${kname}.
This causes some trouble when you have more than one kernel as the file from
the previous kernel will be matched as well. To prevent that, I change
the naming slightly.
targets/support/functions.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 9419b2b..de37c19 100755
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -107,9 +107,9 @@ extract_kernels() {
mv ${1}/initramfs-* ${1}/${x}.igz
fi
- if [ -e ${1}/System.map-* ];
+ if [ -e ${1}/System.map-* ]
then
- mv ${1}/System.map-* ${1}/System.map-${x}
+ mv ${1}/System.map-* ${1}/System-${x}.map
fi
done
}