diff options
author | Tomasz Wasiak <tjwasiak@poczta.onet.pl> | 2013-12-30 17:09:41 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-01-07 17:50:38 -0800 |
commit | 79036b237655963983c2cc7992a97086c9495559 (patch) | |
tree | ff4d4d54bd158f1c73884b08af2da55b8ccba489 | |
parent | Kernel nconfig support (diff) | |
download | genkernel-79036b237655963983c2cc7992a97086c9495559.tar.gz genkernel-79036b237655963983c2cc7992a97086c9495559.tar.bz2 genkernel-79036b237655963983c2cc7992a97086c9495559.zip |
doload= and noload= enhancements
Support for comma separated multiple module list for doload and noload kernel command line parameters.
(minor cleanups to apply & be shorter)
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=496512#c4
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r-- | defaults/linuxrc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc index 950537a..ae83023 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -140,20 +140,17 @@ do ROOTDELAY=5 ;; firstmods=*) - FIRSTMODS=${x#*=} - FIRSTMODS=$(echo ${FIRSTMODS} | sed -e 's/,/ /g') + FIRSTMODS=$(echo ${FIRSTMODS} ${x#*=} | sed -e 's/^\ *//;s/,/ /g') ;; # Module no-loads doload=*) - MDOLIST=${x#*=} - MDOLIST=$(echo ${MDOLIST} | sed -e 's/,/ /g') + MDOLIST=$(echo ${MDOLIST} ${x#*=} | sed -e 's/^\ *//;s/,/ /g') ;; nodetect) NODETECT=1 ;; noload=*) - MLIST=${x#*=} - MLIST="$(echo ${MLIST} | sed -e 's/,/ /g')" + MLIST=$(echo ${MLIST} ${x#*=} | sed -e 's/^\ *//;s/,/ /g') export MLIST ;; # Redirect output to a specific tty |