From: Lennart Poettering Date: Wed, 9 Feb 2022 13:44:48 +0000 (+0100) Subject: kernel-install: only generate systemd.boot_id= in kernel command line if used for... X-Git-Tag: v251-rc1~161^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953b61004c37948dcd897265b56c1613bc73b9f9;p=thirdparty%2Fsystemd.git kernel-install: only generate systemd.boot_id= in kernel command line if used for naming the boot loader spec files/dirs Now that we can distinguish the naming of the boot loader spec dirs/files and the machine ID let's tweak the logic for suffixing the kernel cmdline with systemd.boot_id=: let's only do that when we actually need the boot ID for naming these dirs/files. If we don't, let's not bother. This should be beneficial for "golden" images that shall not carry any machine IDs at all, i.e acquire their identity only once the final userspace is actually reached. --- diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install index 46261a2c11b..c1d69aa8246 100644 --- a/src/kernel-install/90-loaderentry.install +++ b/src/kernel-install/90-loaderentry.install @@ -70,10 +70,15 @@ else BOOT_OPTIONS="$(tr -s "$IFS" '\n'