[yocto] Configuring Channels for Smart PM
Paul Eggleton
paul.eggleton at linux.intel.com
Thu Jul 25 02:24:10 PDT 2013
Hi Ash,
On Wednesday 24 July 2013 18:59:30 Ash Charles wrote:
> I'm looking to use a bbappend to add a repository/channel that the
> smart package manager can use out of the box. For zypper, this was
> just a question of adding a configuration file to the recipe.
>
> How might I preconfigure Smart? The only way I've come up with so far
> is a postinst 'smart channel --add....'
It does seem like Smart is geared more to configuration via the command line
rather than editing the configuration file directly.
One approach you could take would be to add a shell function to your image
recipe (or some class that multiple image recipes can inherit) that adds the
feeds, and trigger that from ROOTFS_POSTPROCESS_COMMAND; this would add the
feeds to your image when the image is generated. Something like this:
add_custom_smart_config() {
smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart channel --add ... -y
}
ROOTFS_POSTPROCESS_COMMAND += "add_custom_smart_config ; "
It would be nice to have something built-in for this. I'll add it to my todo
list.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list