]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-install: Move platdir path canonicalization after files were copied to...
authorMate Kukri <mate.kukri@canonical.com>
Fri, 8 Dec 2023 16:57:55 +0000 (16:57 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 12 Dec 2023 15:48:44 +0000 (16:48 +0100)
commit353beb80c0a195d313fe3309d0436e451d1e5dad
treebdaa6bb591b8a0117902c1fde123e351118086d8
parentf18a899ab17169ab71fcf3919435c4b79495efcd
util/grub-install: Move platdir path canonicalization after files were copied to grubdir

The commit 3f9eace2d (util/grub-install: Delay copying files to
{grubdir,platdir} after install_device was validated) delaying
copying of files caused a regression when installing without an
existing directory structure.

This patch ensures that the platform directory actually exists by the
time the code tries to canonicalize its filename.

Fixes: 3f9eace2d (util/grub-install: Delay copying files to {grubdir,platdir} after install_device was validated)
Signed-off-by: Mate Kukri <mate.kukri@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-install.c