From b21ba8ac6bf6a5856cf1a939d3609c4d680d1dcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 19 May 2022 14:43:03 +0200 Subject: [PATCH] kernel-install: bail if machine id generation fails The call is unlikely to fail, but systemd-id128 might not be installed. We shouldn't continue with the empty string. --- src/kernel-install/kernel-install.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel-install/kernel-install.in b/src/kernel-install/kernel-install.in index 0428c88fb3c..48072e346b1 100755 --- a/src/kernel-install/kernel-install.in +++ b/src/kernel-install/kernel-install.in @@ -114,7 +114,9 @@ fi # compatibility). [ -z "$MACHINE_ID" ] && [ -r /etc/machine-info ] && . /etc/machine-info && MACHINE_ID="$KERNEL_INSTALL_MACHINE_ID" [ -z "$MACHINE_ID" ] && [ -r /etc/machine-id ] && read -r MACHINE_ID