public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: Guy Martin <gmsoft@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] [PATCH 05/11] Rename System.map in a way that it won't be matched if multiple kernel are used.
Date: Wed,  5 Feb 2014 11:40:00 +0100	[thread overview]
Message-ID: <1391596806-14955-6-git-send-email-gmsoft@gentoo.org> (raw)
In-Reply-To: <1391596806-14955-1-git-send-email-gmsoft@gentoo.org>

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 ++--
 targets/support/netboot2-final.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 224833f..7face15 100755
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -106,9 +106,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
 }
diff --git a/targets/support/netboot2-final.sh b/targets/support/netboot2-final.sh
index 55835d2..732a1f1 100755
--- a/targets/support/netboot2-final.sh
+++ b/targets/support/netboot2-final.sh
@@ -14,7 +14,7 @@ mkdir ${clst_target_path}kernels/misc
 for x in ${clst_boot_kernel}; do
 	mv ${clst_target_path}boot/${x} ${clst_target_path}kernels
 	mv ${clst_target_path}boot/${x}.igz ${clst_target_path}kernels/misc
-	mv ${clst_target_path}boot/System.map* ${clst_target_path}kernels/misc/System.map-${x}
+	mv ${clst_target_path}boot/System-${x}.map ${clst_target_path}kernels/misc
 done
 
 rmdir ${clst_target_path}boot
-- 
1.8.3.2




  parent reply	other threads:[~2014-02-05 10:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-05 10:39 [gentoo-catalyst] [PATCH 00/11] Livecd updates for catalyst 3.0 Guy Martin
2014-02-05 10:39 ` [gentoo-catalyst] [PATCH 01/11] update-modules doesn't exists anymore Guy Martin
2014-02-05 10:39 ` [gentoo-catalyst] [PATCH 02/11] depscan.sh " Guy Martin
2014-02-05 10:39 ` [gentoo-catalyst] [PATCH 03/11] /etc/conf.d/rc " Guy Martin
2014-02-05 10:39 ` [gentoo-catalyst] [PATCH 04/11] Fix merging kernel without kerncache enabled Guy Martin
2014-02-05 10:40 ` Guy Martin [this message]
2014-02-05 10:40 ` [gentoo-catalyst] [PATCH 06/11] Allow kernelopts as a valid value for kernels Guy Martin
2014-02-05 10:40 ` [gentoo-catalyst] [PATCH 07/11] Make use of _kernelopts for hppa Guy Martin
2014-02-05 10:40 ` [gentoo-catalyst] [PATCH 08/11] Fix and improve kernel build when kerncache is enabled Guy Martin
2014-02-05 10:40 ` [gentoo-catalyst] [PATCH 09/11] Don't make cdtar mandatory Guy Martin
2014-02-05 10:40 ` [gentoo-catalyst] [PATCH 10/11] Use the system's iplboot to be sure it matches palo's version Guy Martin
2014-02-05 10:40 ` [gentoo-catalyst] [PATCH 11/11] Remove unused hppa cdtar Guy Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1391596806-14955-6-git-send-email-gmsoft@gentoo.org \
    --to=gmsoft@gentoo.org \
    --cc=gentoo-catalyst@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox