From 42b5fce789152947d661a0ed629804618d8335f0 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Sun, 13 Feb 2022 20:42:14 +0700 Subject: [PATCH] initrd-bootchain: split added modules by line in initrd.mk --- .../stage1/scripts.d/80-make-initrd-for-bootchain | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features.in/initrd-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain b/features.in/initrd-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain index 8efb60d4..785fd5cd 100755 --- a/features.in/initrd-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain +++ b/features.in/initrd-bootchain/stage1/scripts.d/80-make-initrd-for-bootchain @@ -29,8 +29,9 @@ PUT_UDEV_RULES += *-net-setup-link.rules *-net-description.rules PUT_FILES += /lib/systemd/network/99-default.link EOF -echo "MODULES_TRY_ADD += $(grep -v ^# /.in/modules | - sort -u | tr -s '\n' ' ')" >> /etc/initrd.mk +for module in $(grep -v ^# /.in/modules | sort -u | tr -s '\n' ' '); do + echo "MODULES_TRY_ADD += $module" >> /etc/initrd.mk +done dialog --create-rc /etc/dialogrc.tmp cat /etc/dialogrc.tmp |sed -E \