sub.in/stage1: remove empty lines from kernel modules list

Empty lines in this file will cause initrd generation. As a result of
the failure, all modules are added to the initrd.
See also commit 62cd397fdd4c6dd08773bf198a5a51ac533153a1
This commit is contained in:
Anton Midyukov 2022-02-11 16:03:08 +07:00
parent 957ef65100
commit accfdc64a3

View File

@ -54,7 +54,8 @@ GLOBAL_SQUASHFS := $(SQUASHFS)
prepare-modules:
@echo $(foreach V,$(STAGE1_MODLISTS),$(wildcard modules.d/??-$(V))) \
| xargs -r -- cat >> $(LIST_MODULES)
| xargs -r -- cat >> $(LIST_MODULES); \
sed -i '/^$$/d' $(LIST_MODULES)
# scripts prepare bootloader configuration, too
# NB: we pass tested squashfs options for sub.in/stage2/Makefile to include