initrd-bootchain: simplify the procedure for adding modules to initrd
This commit is contained in:
parent
e497fd2573
commit
95879da29b
@ -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/' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user