[Fwd: Re: smart installation not scriptable]
Gavin Chester
gavin.chester at gmail.com
Tue Dec 18 23:57:11 PST 2007
This post came to me only, it appears, but I'm sure it was meant for the
list:
-------- Forwarded Message --------
> From: Grant McWilliams <grantmasterflash at gmail.com>
> To: Gavin Chester <gavin.chester at gmail.com>
> Subject: Re: smart installation not scriptable
> Date: Tue, 18 Dec 2007 22:50:26 -0800
>
>
> > > smart update" requires no other input unless you want to
> specify
> > > particular channel[s]
> >
> > It does *on first install*, and this is my problem. I'm
> trying to
> > automate installation after a fresh installation of a
> distro:
> >
> >
> > [root at vz111 /]# yum install smart -y
>
> -snip-
>
> > Dependency Installed: fedora-package-config-smart.i386
> 0:8-10 smart.i386
> > 0:0.51-49.fc8
> > Complete!
> > [root at vz111 /]# smart update
> > New channel 'Fedora - i386 - Development (development)'
> detected.
> > Include it? (Y/n):
>
> -etc, etc-
>
> There really is HUGE advantage, imho, to having the channels
> added
> automatically for a given distro after installing smart.
> Adding selected
> channels afterwards is an extra step that would defeat the
> purpose of
> you having an automated install of smart :-/ So, sounds to me
> like you
> need to hack the script that invokes the channel adding so
> that it is
> NOT interactive but done automatically at first-time run. How
> you do
> that I don't know, but the developers may point you in the
> right
> direction when they have time to follow the thread - or you
> could trawl
> thru' the code for clues 8-)
>
> Gavin
>
>
> I'm scripting smart more than just about anyone I know at this point
> but I can only guess
> at the solution because I don't need this.
>
> Disclaimer: This is only a guess!
>
> I'd yum install smart -y and then have my script delete the channels
> files in /etc/smart and then add the channels I need
> by using "smart channel --add < channels.file".
>
> I think this would work because it shouldn't ask you for any channels
> on startup. Might as well add your mirrors too this way.
> You'd have to try this to see if it actually works though but my guess
> is if there's nothing in /etc/smart/channels I don't think it will
> prompt you
> to add them to the database.
>
> Grant
More information about the Smart
mailing list