]> git.ipfire.org Git - thirdparty/systemd.git/commit
kernel-install: fix detection of entry-token if $BOOT_ROOT is configured
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 May 2022 13:34:32 +0000 (15:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 20 May 2022 07:44:22 +0000 (09:44 +0200)
commiteb45cf97a9740055515ccbcab8231b33ea0df237
treef2cd515513869f33d2f8868ce7f0c0e4320dcfbf
parent4db4c28dc6928e0040db7c273f3017ebc1368760
kernel-install: fix detection of entry-token if $BOOT_ROOT is configured

If $BOOT_ROOT is specified, but entry-token not, we'd skip the detection
altogether, effectively defaulting to entry-token=machine-id.
The case where $BOOT_ROOT was not specied, but entry-token was configured
was handled correctly.
This patch makes the handling of both symmetrical, i.e. will only set what
wasn't configured.
src/kernel-install/kernel-install.in