From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Larson Subject: Re: [PATCH] (revised slightly) create kernel symlinksin /boot Date: Mon, 24 Jan 2005 17:06:05 -0600 Message-ID: <1106607965.5366.7.camel@localhost.localdomain> References: <20050121201928.GL14221@cl.cam.ac.uk> <1106340090.8950.226.camel@localhost.localdomain> <20050121212008.GN14221@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-i11BCTbsHTKtWdZ9prdx" Return-path: In-Reply-To: <20050121212008.GN14221@cl.cam.ac.uk> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Christian Limpach Cc: Ian Pratt , xen-devel List-Id: xen-devel@lists.xenproject.org --=-i11BCTbsHTKtWdZ9prdx Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =46rom 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@us.ibm.com 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 =20 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=3D$(eval ls -t vmlinuz-$m-xen0 2>/dev/null | head -n 1) + [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xen0 + l=3D$(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." =20 --=-i11BCTbsHTKtWdZ9prdx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBB9X9cbkpggQiFDqcRArr6AJ9UmNKVHjMM3HPCsrtqXlNnphj/oACfTWGb bYLI3HVo42vsb+y3EkSFFbY= =axf+ -----END PGP SIGNATURE----- --=-i11BCTbsHTKtWdZ9prdx-- ------------------------------------------------------- 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