diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2019-11-20 01:23:45 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2019-11-24 20:59:15 +0100 |
commit | eccc25ea093340a4e3ba662ed8d9e858800cd134 (patch) | |
tree | c85c76b3af6214079cd3abf7a7fdf2d1e5ed6093 /defaults/linuxrc | |
parent | linuxrc: Fix code style (diff) | |
download | genkernel-eccc25ea093340a4e3ba662ed8d9e858800cd134.tar.gz genkernel-eccc25ea093340a4e3ba662ed8d9e858800cd134.tar.bz2 genkernel-eccc25ea093340a4e3ba662ed8d9e858800cd134.zip |
initrd.scripts: modules_load() refactored
- Add support for LABEL/UUID in root kernel parameter
- When loading network, always load all network modules
even when root block device is already available
- Always load crypto and USB module group when CRYPT_{ROOT,SWAP}
is set.
- Always load fs module group.
- Add gk.hw.load-all kernel command-line argument to allow
user to force loading of all module groups.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults/linuxrc')
-rw-r--r-- | defaults/linuxrc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc index ee462933..f01203b9 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -283,6 +283,14 @@ do fi unset tmp_disabled ;; + gk.hw.load-all=*) + tmp_disabled=${x#*=} + if is_true "${tmp_disabled}" + then + GK_HW_LOAD_ALL_MODULES=1 + fi + unset tmp_disabled + ;; gk.log.disabled=*) tmp_disabled=${x#*=} if is_true "${tmp_disabled}" |