From: Ewan Mellor Subject: Re: [Xen-devel] Re: [PATCH] Problems with pygrub: ValueError:unableto open file Date: Mon, 3 Apr 2006 18:29:22 +0100 Message-ID: <20060403172922.GE21335@leeni.uk.xensource.com> References: <011601c64eb4$39a8a030$0f01a8c0@zaphod> <003f01c65493$5de82b20$7801a8c0@zaphod> <02f901c654d7$d22ec4a0$7801a8c0@zaphod> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <02f901c654d7$d22ec4a0$7801a8c0@zaphod> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: Michael Paesold Cc: Xen Devel , Xen Users List-Id: xen-devel@lists.xenproject.org On Fri, Mar 31, 2006 at 05:28:54PM +0200, Michael Paesold wrote: > Sorry for the last empty mail (hit the wrong button). Attached is a patch > against xen-unstable to improve the error messages in pygrub when the > e2fsprogs do not support the newer ext2fs_open2 function. This should help > beginners to identify the real problem when pygrub does not work (e.g. on > RHEL4). > > Please apply to xen-unstable. > > Best Regards, > Michael Paesold > > # HG changeset patch > # User mpaesold@gmx.at > # Node ID 6d90c95b919b324b7d8e4c7a568040334c8862e9 > # Parent f0e14b4e535c7d99c56c286384b0d512c5220884 > Improve pygrub error reporting when opening ext2 fs is not possible > > As reported in the thread: > http://lists.xensource.com/archives/html/xen-users/2006-03/msg00721.html, > pygrub does not open ext2 file systems in partitioned images or sub > partitions on e.g. CentOS/RHEL 4, because e2fsprogs ext2fs_open does not > support an offset into the file to be opened. > > With this patch, the error is correctly reported instead of a generic > "unable to open file" (and leaving the user searching in the dark). > > Signed-off-by: Michael Paesold > # HG changeset patch > # User mip@xencore04.1virtual.net > # Node ID 6d90c95b919b324b7d8e4c7a568040334c8862e9 > # Parent f0e14b4e535c7d99c56c286384b0d512c5220884 > Improve pygrub error reporting when opening ext2 fs is not possible > > As reported in the thread: > http://lists.xensource.com/archives/html/xen-users/2006-03/msg00721.html, > pygrub does not open ext2 file systems in partitioned images or sub > partitions on e.g. CentOS/RHEL 4, because e2fsprogs ext2fs_open does not > support an offset into the file to be opened. > > With this patch, the error is correctly reported instead of a generic > "unable to open file" (and leaving the user searching in the dark). > > Signed-off-by: Michael Paesold Applied, thanks. Ewan.