dracut.conf: use "+=" as default for config variables

master
Harald Hoyer 2010-05-03 11:35:10 +02:00
parent d8b9844c61
commit d87c2708ec
3 changed files with 16 additions and 14 deletions

6
dracut
View File

@ -138,12 +138,14 @@ fi
# source our config file # source our config file
[[ -f $conffile ]] && . "$conffile" [[ -f $conffile ]] && . "$conffile"


# these optins add to the stuff in the config file
[[ $add_dracutmodules_l ]] && add_dracutmodules+=" $add_dracutmodules_l"
[[ $add_drivers_l ]] && add_drivers+=" $add_drivers_l"

# these options override the stuff in the config file # these options override the stuff in the config file
[[ $dracutmodules_l ]] && dracutmodules=$dracutmodules_l [[ $dracutmodules_l ]] && dracutmodules=$dracutmodules_l
[[ $omit_dracutmodules_l ]] && omit_dracutmodules=$omit_dracutmodules_l [[ $omit_dracutmodules_l ]] && omit_dracutmodules=$omit_dracutmodules_l
[[ $add_dracutmodules_l ]] && add_dracutmodules="$add_dracutmodules $add_dracutmodules_l"
[[ $drivers_l ]] && drivers=$drivers_l [[ $drivers_l ]] && drivers=$drivers_l
[[ $add_drivers_l ]] && add_drivers="$add_drivers $add_drivers_l"
[[ $filesystems_l ]] && filesystems=$filesystems_l [[ $filesystems_l ]] && filesystems=$filesystems_l
[[ $drivers_dir_l ]] && drivers_dir=$drivers_dir_l [[ $drivers_dir_l ]] && drivers_dir=$drivers_dir_l
[[ $fw_dir_l ]] && fw_dir=$fw_dir_l [[ $fw_dir_l ]] && fw_dir=$fw_dir_l

View File

@ -1,19 +1,19 @@
# Sample dracut config file # Sample dracut config file


# Specific list of dracut modules to use # Specific list of dracut modules to use
#dracutmodules="" #dracutmodules+=""


# Dracut modules to omit # Dracut modules to omit
#omit_dracutmodules="" #omit_dracutmodules+=""


# Dracut modules to add to the default # Dracut modules to add to the default
#add_dracutmodules="" #add_dracutmodules+=""


# additional kernel modules to the default # additional kernel modules to the default
#add_drivers="" #add_drivers+=""


# list of kernel filesystem modules to be included in the generic initramfs # list of kernel filesystem modules to be included in the generic initramfs
#filesystems="" #filesystems+=""


# build initrd only to boot current hardware # build initrd only to boot current hardware
#hostonly="yes" #hostonly="yes"

View File

@ -12,28 +12,28 @@ Command line parameter will overwrite any values set here.


.SH OPTIONS .SH OPTIONS
.TP .TP
.BR dracutmodules= \%"[LIST]" .BR dracutmodules+= \%"[LIST]"
Specify a space-separated list of dracut modules to Specify a space-separated list of dracut modules to
call when building the initramfs. Modules are located call when building the initramfs. Modules are located
in /usr/share/dracut/modules.d. in /usr/share/dracut/modules.d.
.TP .TP
.BR omit_dracutmodules= \%"[LIST]" .BR omit_dracutmodules+= \%"[LIST]"
Omit a space-separated list of dracut modules. Omit a space-separated list of dracut modules.
.TP .TP
.BR add_dracutmodules= \%"[LIST]" .BR add_dracutmodules+= \%"[LIST]"
Add a space-separated list of dracut modules. Add a space-separated list of dracut modules.
.TP .TP
.BR drivers= \%"[LIST]" .BR drivers+= \%"[LIST]"
Specify a space-separated list of kernel modules to Specify a space-separated list of kernel modules to
exclusively include in the initramfs. exclusively include in the initramfs.
The kernel modules have to be specified without the ".ko" suffix. The kernel modules have to be specified without the ".ko" suffix.
.TP .TP
.BR add_drivers= \%"[LIST]" .BR add_drivers+= \%"[LIST]"
Specify a space-separated list of kernel Specify a space-separated list of kernel
modules to add to the initramfs. modules to add to the initramfs.
The kernel modules have to be specified without the ".ko" suffix. The kernel modules have to be specified without the ".ko" suffix.
.TP .TP
.BR filesystems= \%"[LIST]" .BR filesystems+= \%"[LIST]"
Specify a space-separated list of kernel filesystem Specify a space-separated list of kernel filesystem
modules to exclusively include in the generic modules to exclusively include in the generic
initramfs. initramfs.
@ -41,7 +41,7 @@ initramfs.
.BR drivers_dir= \%"<dir>" .BR drivers_dir= \%"<dir>"
Specify the directory, where to look for kernel modules Specify the directory, where to look for kernel modules
.TP .TP
.BR fw_dir= \%"<dir>[:<dir>\ ...]" .BR fw_dir+= \%":<dir>[:<dir>\ ...]"
Specify additional directories, where to look for firmwares, separated by : Specify additional directories, where to look for firmwares, separated by :
.TP .TP
.BR do_strip= \%"yes|no" .BR do_strip= \%"yes|no"