All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [PATCH] (revised slightly) create kernel symlinksin /boot
@ 2005-01-21 19:47 Ian Pratt
  2005-01-21 20:19 ` Christian Limpach
  0 siblings, 1 reply; 7+ messages in thread
From: Ian Pratt @ 2005-01-21 19:47 UTC (permalink / raw)
  To: Paul Larson, Adam Heath; +Cc: xen-devel

  
> > bzzt.  What if /boot and $(INSTALL_DIR)/boot are different 
> partitions?
> Oops, forgot to change that, fixed.  Needless to say, most of my boxes
> have a pretty flat filesystem :)

What's wrong with:
ln -s vmlinuz-$(FULLVERSION) $(INSTALL_DIR)/boot/vmlinuz-$(EXTRAVERSION)

In any event, wouldn't it be better to have a link from e.g.

vmlinux-2.6-xen0 -> vmlinuz-2.6.10-xen0 etc?

Am I missing the point of what you're proposing?

Ian

 
> -- 
> 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:54:17 -06:00
> +++ b/buildconfigs/mk.linux-2.6-xen0	2005-01-21 10:54:17 -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 $(INSTALL_DIR)/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:54:17 -06:00
> +++ b/buildconfigs/mk.linux-2.6-xenU	2005-01-21 10:54:17 -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 $(INSTALL_DIR)/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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: [PATCH] (revised slightly) create kernel symlinksin /boot
@ 2005-01-21 21:26 Ian Pratt
  0 siblings, 0 replies; 7+ messages in thread
From: Ian Pratt @ 2005-01-21 21:26 UTC (permalink / raw)
  To: Christian Limpach; +Cc: Paul Larson, Adam Heath, xen-devel

> I think we shouldn't have a link at all, ideally a 
> distribution's package
> installer will create the links which work with the distribution's
> bootloader configuration/setup.
> 
> Also all the ln -s solutions fail if you build twice, you'd 
> need at least
> ln -fs.
> 
> If we must have a link, then I think it should be created as part of
> install.sh since that at least is less likely to get run when building
> packages.

OK, that makes sense, e.g.:

ln -sf `(cd ${src}/boot; echo vmlinuz-2.6.*-xen0)` vmlinuz-2.6-xen0
ln -sf vmlinuz-2.6-xen0 vmlinuz-xen0

We should do something similar with the xen version numbers too.

etc.

Personally, I'd quite like to also have a separate make target that
creates the links in the dist/install/boot directory as it would avoid
me having to keep editing my domain config scripts all the time...

Ian


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-01-24 23:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-21 19:47 [PATCH] (revised slightly) create kernel symlinksin /boot Ian Pratt
2005-01-21 20:19 ` Christian Limpach
2005-01-21 20:41   ` Paul Larson
2005-01-21 21:20     ` Christian Limpach
2005-01-21 21:29       ` Paul Larson
2005-01-24 23:06       ` Paul Larson
  -- strict thread matches above, loose matches on Subject: below --
2005-01-21 21:26 Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.