Bug#488565: should check status of /dev/mtdblock* before trying to write to it
* Wouter Verhelst <wouter@debian.org> [2008-06-29 21:24]:
> I just found out why flashing the kernel to the flash of my Thecus N2100
> was not working: I had disabled udev there, and as a result there were
> no /dev/mtdblock{1,2} files which flash-kernel wants to write to.
> Apparently flash-kernel does not check whether these files exist and/or
> are block devices, either; it will happily create regular files under
> /dev without any error message.
>
> A 'test -b /dev/mtdblock1' before trying to write to it would probably
> be appropriate.
Thanks for catching this bug. I've added the check to SVN now. I'm
currently waiting for some new translations before uploading the
package.
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: