Skip to content
Snippets Groups Projects
Commit 47c28033 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

initrd_remaster: fix expansion of installed kernel

parent 1a1938ec
No related branches found
No related tags found
No related merge requests found
......@@ -297,8 +297,8 @@ $(call gentargets,$(STATE_DIR)/initrd_remastered) : $(call archdir,%)$(STATE_DIR
#install new kernel modules
$(RM) -R "$(call archdir,$*)$(INITRD)/lib/modules/"*
version=$$(basename $$(readlink -f "$(call archdir,$*)$(ROOTFS)/vmlinuz") | cut -d'-' -f2-) \
cp -a "$(call archdir,$*)$(ROOTFS)/lib/modules/$$version" "$(call archdir,$*)$(INITRD)/lib/modules"
cp -a "$(call archdir,$*)$(ROOTFS)/lib/modules/$(shell basename $$(readlink -f "$(call archdir,$*)$(ROOTFS)/vmlinuz") | cut -d'-' -f2-)" \
"$(call archdir,$*)$(INITRD)/lib/modules"
$(call patch_all,$(CURDIR)/patches/initrd,$(call archdir,$*)$(INITRD))
touch "$(call archdir,$*)$(STATE_DIR)/initrd_remastered"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment