kernel: fix flock name for gen-initramfs lock
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 18 Sep 2024 22:58:44 +0000 (00:58 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 18 Sep 2024 23:07:20 +0000 (01:07 +0200)
Fix flock name for gen-initramfs lock as $(2) starts with .HASH making
the lock name gen-initramfs-.HASH.flock

Fix this to a better name of gen-initramfs.HASH.flock

Fixes: 52cc9d82f113 ("kernel: rework Initramfs locking logic")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/kernel-defaults.mk

index 82472c219460aa4eef2e44d741c63b21207f6ccc..64b8a3775e865d4b995a63c13bfb5d30204a396f 100644 (file)
@@ -214,7 +214,7 @@ define Kernel/CompileImage/Initramfs
                        $(KERNEL_MAKE) $(if $(2),-C $(LINUX_DIR)$(2)) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all);) \
                $(call Kernel/CopyImage,-initramfs,$(2)); \
                $(if $(2),rm -rf $(LINUX_DIR)$(2);) \
-       }, gen-initramfs$(if $(2),-$(2)));
+       }, gen-initramfs$(2));
 endef
 else
 define Kernel/CompileImage/Initramfs