WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] create kernel symlinks in /boot

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] create kernel symlinks in /boot
From: Paul Larson <plars@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Jan 2005 15:56:36 -0600
Delivery-date: Thu, 20 Jan 2005 21:57:59 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Minor patch, but useful to me at least.  I really find it convenient to
have a symbolic link to the latest xen kernel I've built/installed for
testing purposes.  When the kernel went from 2.6.9 -> 2.6.10 recently, I
hit all kind of strange problems until I realized that I was booting the
new xen stuff with an old kernel.

This might also come in handy if someone were inclined to make
install.sh smarter so that it modifies grub.  The patch was made against
xen-2.0-testing but should apply ok to all the trees.

-- 
Thanks,
Paul Larson
plars@xxxxxxxxxxxxxxxxxxxx
http://www.linuxtestproject.org

diff -Nru a/buildconfigs/mk.linux-2.6-xen0 b/buildconfigs/mk.linux-2.6-xen0
--- a/buildconfigs/mk.linux-2.6-xen0    2005-01-20 15:48:20 -06:00
+++ b/buildconfigs/mk.linux-2.6-xen0    2005-01-20 15:48:20 -06:00
@@ -18,6 +18,8 @@
            $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) 
modules_install ; \
        fi
        $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
+       ln -s /boot/vmlinuz-$(FULLVERSION) \
+           $(INSTALL_DIR)/boot/vmlinuz-$(EXTRAVERSION)
 
 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
        rm -rf $(LINUX_DIR)
diff -Nru a/buildconfigs/mk.linux-2.6-xenU b/buildconfigs/mk.linux-2.6-xenU
--- a/buildconfigs/mk.linux-2.6-xenU    2005-01-20 15:48:20 -06:00
+++ b/buildconfigs/mk.linux-2.6-xenU    2005-01-20 15:48:20 -06:00
@@ -18,6 +18,8 @@
            $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) 
modules_install ; \
        fi
        $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
+       ln -s /boot/vmlinuz-$(FULLVERSION) \
+           $(INSTALL_DIR)/boot/vmlinuz-$(EXTRAVERSION)
 
 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
        rm -rf $(LINUX_DIR)

Attachment: signature.asc
Description: This is a digitally signed message part