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

RE: [Xen-devel] [PATCH] (revised slightly) create kernelsymlinksin /boot

To: "Paul Larson" <plars@xxxxxxxxxxxxxxxxxxxx>, "Christian Limpach" <Christian.Limpach@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] (revised slightly) create kernelsymlinksin /boot
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Tue, 25 Jan 2005 01:14:38 -0000
Cc: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 25 Jan 2005 09:16:40 +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
Thread-index: AcUCaVP3Pv5DUpRsSgyLZnpgzadzWQAEIIKQ
Thread-topic: [Xen-devel] [PATCH] (revised slightly) create kernelsymlinksin /boot
> From rom all the latest comments, I think this should satisfy 
> what everyone
> wants.  This was from Christian's last suggestion as to how 
> to do it in
> install.sh, with the head flag fixed, and I did opt to create
> vmlinuz-xen{0|U} generic links because those are very handy 
> when trying
> to completely automate testing.  I also kept the versions 
> specific links
> for those who want to know for certain that they are getting a latest
> 2.4 or 2.6 specifically.  Ian, did you specifically need a make target
> that does this though, or is install.sh sufficient since it will work
> when you do make install?

In my setup I never run install.sh as I run everything out of the
dist/install directory over NFS. Hence, I'd quite like the symlink to be
always be there. However, I can see how this could be an issue for
packaging, so its probably not worth worrying about.

One thing that would be good to fix is make it so that the final 'cp
-fdR $src/* $dst' handles the case where /etc/init.d is a symlink
better. Perhaps a tar | tar would handle this better?

I'll add the other patch.

Thanks,
Ian

> Thanks,
> Paul Larson
> 
> Signed-off-by: pl@xxxxxxxxxx
> 
> diff -Nru a/install.sh b/install.sh
> --- a/install.sh      2005-01-24 16:55:01 -06:00
> +++ b/install.sh      2005-01-24 16:55:01 -06:00
> @@ -23,6 +23,15 @@
>  fi
>  
>  echo "Installing Xen from '$src' to '$dst'..."
> +cd $src/boot
> +(echo '2.6.*' -2.6; echo '2.4.*' -2.4; echo '2.*.*' '') | 
> while read m
> v
> +do
> +  l=$(eval ls -t vmlinuz-$m-xen0 2>/dev/null | head -n 1)
> +  [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xen0
> +  l=$(eval ls -t vmlinuz-$m-xenU 2>/dev/null | head -n 1)
> +  [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xenU
> +done
> +cd -
>  cp -fdR $src/* $dst
>  echo "All done."
>  
> 
> 


-------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [Xen-devel] [PATCH] (revised slightly) create kernelsymlinksin /boot, Ian Pratt <=