Ian Pratt
2005-Jan-21 17:51 UTC
RE: [Xen-devel] [PATCH] (revised slightly) create kernel symlinks in /boot
Since the symlink is to a file in the same directory, I think the orginal patch will work fine with GRUB. Ian> -----Original Message----- > From: xen-devel-admin@lists.sourceforge.net > [mailto:xen-devel-admin@lists.sourceforge.net] On Behalf Of > Paul Larson > Sent: 21 January 2005 16:21 > To: Felipe Alfaro Solana > Cc: xen-devel > Subject: [Xen-devel] [PATCH] (revised slightly) create kernel > symlinks in /boot > > On Fri, 2005-01-21 at 00:06 +0100, Felipe Alfaro Solana wrote: > > I think this won''t work if /boot is mounted in a separate > partition. > > AFAIK, GRUB isn''t able to follow symlinks across different > filesystems. > > That probably true, but a hard link should work ok right? > The cp -dR in > make install-kernels should ensure that the link is preserved, and cp > -fdr likewise in install.sh. > > -- > Thanks, > Paul Larson > plars@linuxtestproject.org > 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-21 10:19:56 -06:00 > +++ b/buildconfigs/mk.linux-2.6-xen0 2005-01-21 10:19:56 -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 /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-21 10:19:56 -06:00 > +++ b/buildconfigs/mk.linux-2.6-xenU 2005-01-21 10:19:56 -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 /boot/vmlinuz-$(FULLVERSION) \ > + $(INSTALL_DIR)/boot/vmlinuz-$(EXTRAVERSION) > > $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER) > rm -rf $(LINUX_DIR) > >------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Luciano Miguel Ferreira Rocha
2005-Jan-21 18:32 UTC
Re: [Xen-devel] [PATCH] (revised slightly) create kernel symlinks in /boot
On Fri, Jan 21, 2005 at 05:51:43PM -0000, Ian Pratt wrote:> Since the symlink is to a file in the same directory, I think the > orginal patch will work fine with GRUB.No, the symlink is still an absolute path. It needes to be relative: + ln -s /boot/vmlinuz-$(FULLVERSION) \ + $(INSTALL_DIR)/boot/vmlinuz-$(EXTRAVERSION) becomes + ln -s vmlinuz-$(FULLVERSION) \ + $(INSTALL_DIR)/boot/vmlinuz-$(EXTRAVERSION) (A hardlink would certainly not work, because /boot may be on a different filesystem than $(INSTALL_DIR)/boot.) Regards, Luciano Rocha ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel