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

Colin Watson cjwatson at debian.org
Wed Jan 9 00:29:14 GMT 2019


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.

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Pkg-grub-devel mailing list