bootctl: don't load etc/machine-info from cwd
authorAlyssa Ross <hi@alyssa.is>
Wed, 21 Aug 2024 12:21:47 +0000 (14:21 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 10 Sep 2024 12:56:05 +0000 (14:56 +0200)
commit8d7eef9ee5ead7c7b47b2ad4418529ac5cf17bb3
tree3b33e649a48d0ec99b35a728d259679d34855ee9
parent83f30941731ca454309c566edbfe3b3bfeaf8453
bootctl: don't load etc/machine-info from cwd

arg_root defaults to null, so if --root isn't given, this would try reading
etc/machine-info from the current working directory, which is likely to fail.

Fixes: 77db9ef2ab ("boot: Make sure we take --root into account everywhere.")
(cherry picked from commit 0452779b0054f5c2724b745b1db33bba1ac8e677)
src/boot/bootctl-install.c