[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.