Re: Configuring Channels for Smart PM

Ash Charles <ashcharles@...>

Hi Paul,

Thanks very much for your help. This worked like a charm for me.

For future people searching:
- this didn't work (don't know why):

- this worked:


On Thu, Jul 25, 2013 at 2:24 AM, Paul Eggleton
<> wrote:
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



Paul Eggleton
Intel Open Source Technology Centre

Join to automatically receive all group messages.