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

initrd_remaster: removing the modules requires -R flag

parent 9f7b71fa
Branches
Tags
No related merge requests found
...@@ -296,7 +296,7 @@ $(call gentargets,$(STATE_DIR)/initrd_remastered) : $(call archdir,%)$(STATE_DIR ...@@ -296,7 +296,7 @@ $(call gentargets,$(STATE_DIR)/initrd_remastered) : $(call archdir,%)$(STATE_DIR
cp "$(CURDIR)/contrib/initrd/initrd_hook/ORDER" "$(call archdir,$*)$(INITRD)/scripts/casper-bottom/" cp "$(CURDIR)/contrib/initrd/initrd_hook/ORDER" "$(call archdir,$*)$(INITRD)/scripts/casper-bottom/"
#install new kernel modules #install new kernel modules
$(RM) "$(call archdir,$*)$(INITRD)/lib/modules/"* $(RM) -R "$(call archdir,$*)$(INITRD)/lib/modules/"*
version=$$(basename $$(readlink -f "$(call archdir,$*)$(ROOTFS)/vmlinuz") | cut -d'-' -f2-) \ 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/$$version" "$(call archdir,$*)$(INITRD)/lib/modules"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment