Bug#740740: grub-install does not detect mipsel-loongson correctly

Colin Watson cjwatson at debian.org
Tue Mar 4 15:54:50 UTC 2014


On Tue, Mar 04, 2014 at 07:41:22AM -0800, Matt Kraai wrote:
> When I try to install Debian on a Lemote Yeeloong, GRUB installation
> fails with the following error message:
> 
> > source_dir doesn't exist. Please specify --target or --directory
> 
> grub-install uses the output of "uname -m" to determine what to set
> target to.  "uname -m" outputs mips64, so target is set to mips-arc,
> but /usr/lib/grub/mips-arc does not exist.  If I pass
> "--target=mipsel-loongson", grub-install succeeds.

Thanks.  I think this is fixed in experimental with the grub-install
rewrite in C, as it now uses #if defined (__MIPSEL__) - could you
confirm?

If we need to fix this in 2.00, could you suggest a more accurate check
that's about at the level of uname -m (i.e. no dpkg --print-architecture
etc.)?

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Pkg-grub-devel mailing list