Bug#918700: grub2-common: update-grub fails with bogus error messages if it doesn't like the current dir

Russell Coker russell at coker.com.au
Thu Jan 10 06:48:43 GMT 2019


On Wednesday, 9 January 2019 11:29:14 AM AEDT Colin Watson wrote:
> On Wed, Jan 09, 2019 at 10:43:42AM +1100, Russell Coker wrote:
> > It would probably be easier to just canonicalise all path names given
> > on the command line and then cd / before starting work. Apart from the
> > possibility of a relative pathname on the command line there's no
> > benefit in restoring the directory.
> 
> I'm pretty sure it will in fact be easier to use save-cwd from Gnulib,
> and I'm already working on patches in that direction.  (The only real
> obstacle is that GRUB's use of Gnulib is currently a bit of a mess, so
> I'm working on cleaning that up first.)  Of course you're free to submit
> a patch upstream implementing your preferred approach, but this is mine.

OK, if that's what you think is best.

Also please note that this problem originally occurred to me with EPERM doe to 
SE Linux preventing bootloader_t from searching the current directory.  The 
bug I filed was a way for people who don't use SE Linux to reproduce it.  
Please keep this extra corner case in mind.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/



More information about the Pkg-grub-devel mailing list