[oe] [PATCH 3/3] base-files-3.0.14 configuration files

Phil Blundell philb at gnu.org
Thu Mar 17 11:10:58 UTC 2011


On Thu, 2011-03-17 at 11:54 +0100, Peter Gsellmann wrote:
> Mark some files in ${sysconfdir} as configuration files so they are not blindly overwritten when upgrading

I wonder if it would make sense to mark everything in ${sysconfdir} and
${sysconfdir}/default (but probably not other subdirs) as a conffile
automatically.  I don't think there are many/any files in there that
wouldn't want conffile treatment. 

> -CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname"
> +CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname ${sysconfdir}/motd \
> +    ${sysconfdir}/profile ${sysconfdir}/nsswitch.conf ${sysconfdir}/host.conf"
>  CONFFILES_${PN}_micro = ""
>  CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname"
>  CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname"

Those DISTRO overrides look a bit weird too.  I wonder if the slugos and
nylon ones ought really to be "CONFFILES_${PN}_prepend_DISTRO" or
something.  The intent of the micro one is fairly clear although I can't
immediately think why this would be useful given that micro doesn't use
O_P_M.

p.






More information about the Openembedded-devel mailing list