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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Aug 2024 19:30:50 +0000 (04:30 +0900)
commit0452779b0054f5c2724b745b1db33bba1ac8e677
tree6a36b99ed41c47cbc7159ebcd2dd39ff9849217d
parentb9d326c568e7a8065f56314d453bf19f838702fc
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.")
src/boot/bootctl-install.c