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

Re: [Xen-devel] [PATCH] (revised slightly) create kernel symlinksin /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?

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

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


 


Rackspace

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