Daniel P. Berrange
2006-Nov-06 15:14 UTC
[Xen-devel] [Patch] tweak error reporting for bootloader errors in xm
The xm command does some basic validation of the ''bootloader'' parameter before trying to run it, however, the level of detail reported isn''t as clear as it could be. For example if I typo the bootloader param it says: # xm create XenGuest1 Using config file "XenGuest1". Error: Bootloader isn''t executable The attached patch makes it do an explicit check for path existance prior to the one for executable permissions. It also prints out the path being tested. # xm create XenGuest1 Using config file "XenGuest1". Error: Bootloader ''/usr/sbin/pygrub'' does not exist Signed-off-by: Daniel P, Berrange <berrange@redhat.com> Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-Dec-07 12:10 UTC
Re: [Xen-devel] [Patch] tweak error reporting for bootloader errors in xm
On Mon, Nov 06, 2006 at 03:14:33PM +0000, Daniel P. Berrange wrote:> The xm command does some basic validation of the ''bootloader'' parameter > before trying to run it, however, the level of detail reported isn''t as > clear as it could be. > > For example if I typo the bootloader param it says: > > # xm create XenGuest1 > Using config file "XenGuest1". > Error: Bootloader isn''t executable > > The attached patch makes it do an explicit check for path existance prior > to the one for executable permissions. It also prints out the path being > tested. > > # xm create XenGuest1 > Using config file "XenGuest1". > Error: Bootloader ''/usr/sbin/pygrub'' does not exist > > > Signed-off-by: Daniel P, Berrange <berrange@redhat.com>Applied, thanks, and sorry for the delay. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel