Re: adding python popup in %pre of kickstart to get user input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeremy et al,

Going back to my previous thread about hosts with multiple NICs, could
%pre be used to query the user for the device?  In other words, at the
time %pre is run, has anaconda already chosen which eth device to use
for kickstart?  If not, maybe I could write a routine to query the end
user for the proper ethernet device before anaconda runs.

I'd much rather do that than mess with the anaconda source  :)

/Brian/

On Tue, 2003-09-23 at 17:28, Jeremy Katz wrote:
> On Tue, 2003-09-23 at 16:55, sjsmith3@xxxxxxxxxxx wrote:
> > Is there a way to have a python gui popup from the %pre section
> > of a kickstart file to get user input?
> 
> You should be able to set DISPLAY to :1 and then display something.
> 
> Untested little proof of concept scriptlet
> 
> %pre --interpreter /usr/bin/python
> import os, sys
> os.environ["DISPLAY"] = ":1"
> import gtk
> win = gtk.Window()
> win.add(gtk.Label("hi"))
> win.show_all()
> gtk.main()
> # End
> 
> Cheers,
> 
> Jeremy
> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list
-- 
       Brian Long                      |         |           |
       Americas IT Hosting Sys Admin   |       .|||.       .|||.
       Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
       Phone: (919) 392-7363           |   C i s c o   S y s t e m s





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux