All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Ash Charles <ashcharles@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: Configuring Channels for Smart PM
Date: Thu, 25 Jul 2013 10:24:10 +0100	[thread overview]
Message-ID: <1500336.365Z9OCVSV@helios> (raw)
In-Reply-To: <CAK8F28k_8VR0qdC8JY2W020gx4EA4fGpw0yesodnLJ6j5WfT6A@mail.gmail.com>

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


  reply	other threads:[~2013-07-25  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25  1:59 Configuring Channels for Smart PM Ash Charles
2013-07-25  9:24 ` Paul Eggleton [this message]
2013-07-26 22:22   ` Ash Charles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500336.365Z9OCVSV@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=ashcharles@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.