aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-01-07 15:15:05 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-01-07 15:37:17 -0800
commit629ea57860b7332a4922fc77b07a9118551eec0f (patch)
tree0429fbd55451d904da2710d44d5ae5f66df241f0 /defaults/initrd.defaults
parentSupport NVMe block devices. (diff)
downloadgenkernel-629ea57860b7332a4922fc77b07a9118551eec0f.tar.gz
genkernel-629ea57860b7332a4922fc77b07a9118551eec0f.tar.bz2
genkernel-629ea57860b7332a4922fc77b07a9118551eec0f.zip
Improve documentation for HWOPTS/MY_HWOPTS.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'defaults/initrd.defaults')
-rwxr-xr-xdefaults/initrd.defaults19
1 files changed, 13 insertions, 6 deletions
diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults
index 43f5c090..b7128ebb 100755
--- a/defaults/initrd.defaults
+++ b/defaults/initrd.defaults
@@ -79,10 +79,17 @@ LOOPS='/livecd.loop /zisofs /livecd.squashfs /image.squashfs /livecd.gcloop'
DEFAULT_NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024"
-# This should list all possible hwopts that take do/no prefixes
-# this is part of the load order too fyi
-HWOPTS='keymap cache modules nvme pata sata scsi usb firewire waitscan lvm dmraid multipath mdadm zfs fs net'
+# HWOPTS is the list of ALL options that take do/no prefixes, almost all of
+# which match a MODULES_* variable; it is ALSO the order of evaluation.
+#
+# The following entries are special behavior, rather than module loading
+# - keymap
+# - cache
+# - modules
+HWOPTS_BLK='nvme pata sata scsi usb firewire waitscan'
+HWOPTS_OBSOLETE='pcmcia ataraid' # Obsolete stuff that might be useful on old hardware, do$X only.
+HWOPTS="keymap cache modules ${HWOPTS_BLK} lvm dmraid multipath mdadm zfs fs net iscsi crypto"
-# Only sections that are in by default or those that
-# are not module groups need to be defined here...
-MY_HWOPTS='modules pata nvme sata scsi usb firewire waitscan dmraid mdadm fs net iscsi crypto'
+# This is the set of default HWOPTS, in the order that they are loaded.
+# This is whitespace aligned with HWOPTS above.
+MY_HWOPTS=" modules ${HWOPT_BLK} dmraid mdadm fs net crypto"