Non-interactive smart

Andreas Bach Aaen andreas.bach.aaen at ericsson.com
Thu Oct 5 08:22:38 PDT 2006


torsdag 05 oktober 2006 16:13 skrev Mauricio Teixeira (netmask):
> Em Qui, 2006-10-05 às 15:08 +0200, Andreas Bach Aaen escreveu:
> > However I have found that yum have an option -y that makes it
> > non-interactive, and hence usable for scripting. I haven't been ablt to
> > find a similar option for smart - is this true?
>
> It does exist. The commands 'install', 'remove' and 'upgrade' all have
> '-y'.

Sorry I missed that one. Thanks a lot:-)

> You can either import the keys into txt files, or dump the keys from
> your main server's rpm database. Sorry, but I don't know the commands
> for either of them. :(

Well it seems that it will reqest the keyserver anyhow. So I want to disable 
the use of a keyserver. I will come back with a separate mail on this 
later...

> > Output from udev-085-30.10 at i586:
> >                                                                    
> > warning: group tty does not exist - using root
>
> Some other package should have been installed first in order to create
> the tty group. It's more like a packaging or distribution bootstraping
> issue than something related to smart.

Possible. yum gives the same problems.
But what happens if a rpm scriptlet will add a system user. Will this be in 
etc directory in the /tmp/newroot/ tree or in the / tree?

> > For me to seen does this mean that you are using the rpm command and the
> > password/group file from the surrounding filesystem (/) and not the new
> > one (/tmp/newroot).
>
> Well, you asked a chroot operation.
>
> > environment (to /tmp/newroot) then it's possible to create e.g. a Suse
> > rootfilesystem on a Fedora system or the other way arround. Maybe even
>
> AFAIK, even the Suse guys bootstrap a chrooted filesystem by forcing the
> installation of some relevant packages before running rpm itself to
> install the rest (issue checked by using OpenSUSE BuildService).

Yes they do. The "uml-install-suse" script from e.g. SLES9 shows this. 
They "manually" unpack the rpm package and a few extras and then run this rpm 
and not the one installed on your host.
How is this done with smart?

Regards,
-- 
Andreas Bach Aaen              System Developer, M. Sc. 
Ericsson Danmark A/S           tel: +45 89 38 51 00
Skanderborgvej 232             fax: +45 89 38 51 01
8260 Viby J      Denmark       andreas.bach.aaen at ericsson.com



More information about the Smart mailing list