From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Haigh Subject: Re: pv-grub and grub.conf locations Date: Fri, 07 Nov 2014 23:17:59 +1100 Message-ID: <545CB877.4060807@crc.id.au> References: <545BFBB3.9010303@crc.id.au> <545CAFC7.20501@crc.id.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0417105920607355346==" Return-path: In-Reply-To: <545CAFC7.20501@crc.id.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0417105920607355346== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4OnP8AraEDKmIrodTASDTwPXtSWQ8TIS6" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4OnP8AraEDKmIrodTASDTwPXtSWQ8TIS6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 7/11/2014 10:40 PM, Steven Haigh wrote: > On 7/11/2014 10:19 PM, Stefano Stabellini wrote: >> On Fri, 7 Nov 2014, Steven Haigh wrote: >>> Hi Stefano, >>> >>> Sorry to hassle you directly - but I'm trying to figure out a use cas= e >>> of pv-grub to replace most pygrub configurations. >> >> No worries. I CC'ed xen-devel, because I think that this is an >> interesting question that could be useful to other people too. >> >> >>> I have two main locations where the grub config may live: >>> 1) (hd0)/boot/grub/grub.conf or >>> 2) (hd0,0)/boot/grub/grub.conf >>> >>> This depends if the DomU is created by something like the debian >>> installer which refuses to install to a 'whole disk' - or say my EL6 >>> kickstart which installs to /dev/xvda as ext4 (which is easier to man= age). >>> >>> From what I've been reading, there is no way to pass both of these to= >>> pv-grub and let it deal with whichever one exists. >>> >>> Interestingly, pygrub seems to search all paths to make this work - i= e >>> you only need to specify: >>> bootloader =3D 'pygrub' >>> >>> As I'm trying to generate generic config files, it makes life much >>> harder to implement pv-grub as the loader (even though its preferred)= =2E >>> >>> Any thoughts on this? >> >> Unfortunately it doesn't look like there is a way to do that at the >> moment. But I agree it would be useful and we might be able to make it= >> work for the next release (Xen 4.6). >> >=20 > Well, from digging through the grub 0.97 documentation, it *may* be > possible - however documentation on pv-grub seems to be very rare. >=20 > Interestingly, from the grub documentation: > 13.3.11 find > =97 Command: find filename >=20 > Search for the file name filename in all mountable partitions and > print the list of the devices which contain the file. The file name > filename should be an absolute file name like /boot/grub/stage1. >=20 > Also: > 13.3.6 configfile > =97 Command: configfile file >=20 > Load file as a configuration file. >=20 > It wouldn't be too hard to imagine a grub configuration script that > could be loaded (somehow) into the 'extra' section of the DomU config > that basically passes the output of 'find /boot/grub/grub.conf' to > configfile $result and uses that to boot. >=20 > This may actually be possible already - but I haven't found any > documentation that points to it or any configurations that have been > published. >=20 > Any further feedback from anyone who has seen this may help out... Interestingly, if this is a bug or not: grubdom> debug Debug mode is turned on grubdom> find /boot/grub/grub.conf Error 15: File not found grubdom> --=20 Steven Haigh Email: netwiz@crc.id.au Web: http://www.crc.id.au Phone: (03) 9001 6090 - 0412 935 897 --4OnP8AraEDKmIrodTASDTwPXtSWQ8TIS6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJUXLh3AAoJEEGvNdV6fTHceV8QAINj4jsHB9PCf4AAw0dJi7/r taZKOPN55BIihjfASCPdFHUCCyPXNPAUVt1NnRG3jai0K/O+1kr3rqOTaEqZUerT xKuQzXlT6l3ORiPQxCAui9kqtAkdpcxI6jAPRnYBvQyUjW5QL4Ygy4owAtUCjtIn wKZ1S7DV5Tmm3dDXQSfAU/LcrJzXw0EThPwIalcbFRsSkT4l/3OZMdXDYuJc07dQ yT2xPN39/C4c4UGkkktFgk0EDX5fXacD5PCyCI7LRWRCQ9U/evahRqqQRj+hz6cD DfccqXdGnqR13Ddpi6GolSO1fEz85oeXTRSIqDuu3+0SrlivfIVDf2cUwT3oq+VY jOr7wbLkVzNd2gJw+5f3yusyxzksbR6R8J1FUo4iHySP3DIRaonqmnKApdYVJa65 a0DkxHKz+ErB1TJOHtML9RPe8RpCc6BBDcLYk6Psyx91ZH5S6laClSi3X2xXl0iP bwQXZzr27h4+1tk6GESc/68UVqyxITVJStiwFNDGzeAYxm6sI8r3KAgULIlvbmj/ te0RYx6WXRfIy0SsPDumE+V+OGRwSYpcHyLodz2wSMtcx3wqDlh4jCpetKtMuElF AVXq2iLKWy8to21p9eKFPzjRHANbVUrBXkCL/AQDT5EXlwVxXiAzY4sWT+wJOmKR PPuhDZF1+DrPVD+QyAOj =voLJ -----END PGP SIGNATURE----- --4OnP8AraEDKmIrodTASDTwPXtSWQ8TIS6-- --===============0417105920607355346== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============0417105920607355346==--