initrd-bootchain: simplify the procedure for adding modules to initrd

This commit is contained in:
Anton Midyukov 2022-02-13 19:54:12 +07:00
parent e497fd2573
commit 95879da29b

View File

@ -30,15 +30,8 @@ PUT_FILES += /lib/systemd/network/99-default.link
EOF
echo "MODULES_TRY_ADD += $(grep -v ^# /.in/modules |
grep -v / |
grep .ko |
sort -u | tr -s '\n' ' ')" >> /etc/initrd.mk
echo "MODULES_TRY_ADD += $(grep ^# -v /.in/modules |
grep -v .ko |
sort -u |
sed 's,$,/,g' | tr -s '\n' ' ')" >> /etc/initrd.mk
dialog --create-rc /etc/dialogrc.tmp
cat /etc/dialogrc.tmp |sed -E \
-e 's/^(use_colors).*/\1 = ON/' \