Thomas Blume changed bug 1188915
What Removed Added
CC   thomas.blume@suse.com

Comment # 2 on bug 1188915 from
(In reply to Joerg Roedel from comment #1)
> The issue is likely here in /usr/bin/dracut:
> 
> | # source our config file
> | if [[ -f $conffile ]]; then
> |     check_conf_file "$conffile"
> |     # shellcheck disable=SC1090
> |     . "$conffile"
> | fi
> |
> | # source our config dir
> | for f in $(dropindirs_sort ".conf" "$confdir"
> "$dracutbasedir/dracut.conf.d"); do
> |     check_conf_file "$f"
> |     # shellcheck disable=SC1090
> |     [[ -e $f ]] && . "$f"
> | done
> 
> The config file is sourced before the config directories. The directory
> which constains 01-dist.conf is even sourced last, so there is no way to
> overwrite the hostonly default set by the package.
> 
> I think the dist-defaults belong into /etc/dracut.conf so that users can
> replace/update them.


Indeed, that order looks wrong, the configs in /etc must be able to overwrite
the vendor defaults.
But the dist-defaults in /usr/lib/dracut/dracut.conf* is correct.
/etc/dracut.conf* is for the admin not for the vendor.


You are receiving this mail because: