Commit 95879da2 authored by Anton Midyukov's avatar Anton Midyukov

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

parent e497fd25
......@@ -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/' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment