[Lunar-commits] <moonbase> linux-stable: use .config.stable file not .config.current

Florin Braescu florin at lunar-linux.org
Mon Jan 9 04:14:40 CET 2012


commit 81bec9c8d2ec87e6f99f705af197ea15caf78208
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Mon Jan 9 04:14:40 2012 +0100

    linux-stable: use .config.stable file not .config.current
---
 kernel/linux-stable/BUILD        |    2 +-
 kernel/linux-stable/POST_INSTALL |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/kernel/linux-stable/BUILD b/kernel/linux-stable/BUILD
index 7b8ed5f..38c7002 100644
--- a/kernel/linux-stable/BUILD
+++ b/kernel/linux-stable/BUILD
@@ -2,7 +2,7 @@
 MYARCH="`arch | grep -qw i.86 && echo i386 || arch`"
 
 echo | make oldconfig
-LD_PRELOAD= cp .config $CONFIG_CACHE/.config.current
+LD_PRELOAD= cp .config $CONFIG_CACHE/.config.stable
 rm -f arch/${MYARCH}/boot/bzImage
 
 make ${MAKES:+-j$MAKES} bzImage
diff --git a/kernel/linux-stable/POST_INSTALL b/kernel/linux-stable/POST_INSTALL
index dd6cddc..700bc17 100644
--- a/kernel/linux-stable/POST_INSTALL
+++ b/kernel/linux-stable/POST_INSTALL
@@ -1,4 +1,7 @@
-update_bootloader $VERSION-`arch` $VERSION-`arch`
+PATCH_VERSION=$(echo $VERSION | cut -d . -f 3)
+FULL_VERSION=$(echo $VERSION | cut -d . -f 1,2).${PATCH_VERSION:-0}
+
+update_bootloader $FULL_VERSION-`arch` $VERSION-`arch`
 
 #  Reinstall packages that add their own kernel modules
 


More information about the Lunar-commits mailing list